Artifacts Associated With Ticket 1484427fffffffffffffffffffffffffffffffff
Ticket change [47d8701e2f] (rid 99777) by nobody on 2006-05-09 07:05:14:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
It is not possible to list a hidden file with glob. A -all option would be suitable
- foundin initialized to: "obsolete: 8.4.13"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "16. Commands A-H"
- title initialized to: "behaviour glob command"
- type initialized to: "RFE"
Ticket change [21a3f93899] (rid 130619) by nobody on 2006-05-09 18:37:21:
- icomment:
Logged In: NO Please do try reading the glob documentation where you will find '-types hidden' clearly documented.
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [acf6482025] (rid 101382) by hobbs on 2006-05-09 23:38:44:
- icomment:
Logged In: YES user_id=72656 The -types hidden is what's documented, but glob is broken in that you can't get hidden and non-hidden items in one request, and glob's can be expensive. A -all is a good idea.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [d1f140e8fc] (rid 113438) by dgp on 2006-05-10 00:17:12:
- foundin changed to: "None"
- icomment:
data_type - 360894
- login: "dgp"
- mimetype: "text/plain"
- subsystem changed to: "37. File System"
- username: "dgp"
Ticket change [cc477a5981] (rid 95666) by dgp on 2006-05-10 00:18:11:
- assignee changed to: "vincentdarley"
- subsystem changed to: "36. Pathname Management"
Ticket change [b453707856] (rid 125011) by vincentdarley on 2006-05-10 05:52:17:
- icomment:
Logged In: YES user_id=32170 Changed the summary to reflect what this is actually about. Indeed that is a good idea, and I heartily recommend someone write a TIP and provide a patch to implement this. I do have to ask, however, whether there are good examples when glob really is the performance bottleneck? Clearly almost any situation where the files are actually going to be accessed in any way is going to mean that the 'glob' itself will be relatively quick in comparison.
- login: "vincentdarley"
- mimetype: "text/plain"
- title changed to: "glob: retrieve hidden and non-hidden in one go"
- username: "vincentdarley"
- icomment:
Ticket change [2db29ce782] (rid 119107) by das on 2006-05-10 10:11:22:
- icomment:
Logged In: YES user_id=90580 note the added wrinkle on Mac OS X of the HFS invisible flag in this context, c.f. bug 823329: > the only thing not implemented is exclusion of > files hidden via HFS invisible flag from > ordinary glob results (i.e. without -types > hidden), to implement this it would be > necessary to do always do a costly stat & > getattrlist for every file traversed (as well > as a major rewrite of unix > TclpMatchInDirectory/ NativeMatchType), I don't > think it's worth the slowdown of the most > common glob cases to add this minor feature. > [glob -types hidden] does however return the > files with HFS invisible flag in addition to > files starting with '.' so -all is already the default mode of operation on Darwin for HFS invisible files...
- login: "das"
- mimetype: "text/plain"
- username: "das"
- icomment:
Ticket change [8af6ce9eb2] (rid 127481) by blacksqr on 2006-07-22 02:13:18:
- icomment:
Logged In: YES user_id=128673 I second the request for an "-all" option. It would be especially useful for example when dealing with high-latency network filesystems, where one wants to make as few calls as possible to maximize performance. Note also that the Tclvfs API doesn't transmit the "hidden" type flag to the underlying vfs code, so if one wants to make hidden files accessible in a virtual filesystem, every glob call made by a user must be fulfilled with two glob calls in the vfs code (one to get non-hidden files, another to get the hidden). Again, when working over remote networks, this is an unnecessary performance hit.
- login: "blacksqr"
- mimetype: "text/plain"
- username: "blacksqr"
- icomment: