Overview
| Artifact ID: | 7f07fd06fa8da14303c5d5ad0e9e47951aeb1b90 |
|---|---|
| Ticket: | 2511011fffffffffffffffffffffffffffffffff
[glob] can return non-existing filenames |
| User & Date: | dgp on 2009-08-14 00:37:03 |
Changes
- icomment:
Note that with VFS, this problem can be more general than ~ expansion. Any time the tail of an absolute filename is recognized on its own also as a different absolute filename, there's going to be confusion that the pathnames returned by [glob] do not point back the the same files whose existence [glob] is acting upon. Need to dig in to be sure, but it seems the right solution is some checking within [glob] that the paths it returns that it expects to be relative are in fact relative, and applying some fix (following the ./ prefixing example) to correct any that are not. Even that will leave some difficulties, if a relative path is retrieved from [glob] and stored, and then a later mount of a filesystem converts that stored path from relative to absolute. I think that level of difficulty cannot be avoided given the dynamic view of the filesystem Tcl exposes. Any paths meant to be kept around for any length of time at all need to be in absolute form.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"