Overview
| Artifact ID: | f44ce26b1202c471795ff8685ae7c157443107c3 |
|---|---|
| Ticket: | 800106ffffffffffffffffffffffffffffffffff
Incorrect treatment of mounted file by glob. |
| User & Date: | vincentdarley on 2003-09-04 14:38:35 |
Changes
- icomment:
Logged In: YES user_id=32170 Yup, this is a core bug, but one that is nasty to fix without a significant performance hit. The issue is that the TclpMatchInDirectory native fs functions (in mac/unix/win) call direct to the native fs to determine the type of each file returned from glob (and do so in a relatively efficient way, since they already have the file's native representation, etc). What is needed is an examination of this code and how it can be made to be vfs aware. In particular, we should be aware there *will* be a performance penalty when -types in used. Note: this actually raises the possibility that there might be another bug in the existing code, if the results generated by glob are appropriately cached, since it might be that TclpMatchInDirectory generates Tcl_Objs which have cached the native filesystem and native representation of the file (hence claiming the objects for the native fs, which could be wrong). I can't remember if I got around to making TclpMatchInDirectory that clever or not...
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"