Intermediate directories in zipfs mounts are treated as not existing
Closed / Fixed02acab5aea7c3457889ec96a73b7213ce25ea7caCreated 3 years agoUpdated 3 years ago
Descriptionmarkdown2023-09-15 05:42:50
When an archive is not mounted at the zipfs root, intermediate directories are not seen as existing. This is not a minor issue because a recursive glob starting at the zip root will fail to find files in the archive.
A secondary issue, also important, is that the commands on the intermediate directories take more than 1s to return (at least on Windows) on first invocation. This is probably tied to the UNC interpretation as reported in 93eb73784a.
% zipfs mount ../tests/zipfiles/test.zip //zipfs:/a/b/c
% zipfs exists //zipfs:/
0
% zipfs exists //zipfs:/a
0
% zipfs exists //zipfs:/a/b/c
1
% file exists //zipfs:/
0
% file exists //zipfs:/a
0
% file exists //zipfs:/a/b/c
1
% glob //zipfs:/a/*
no files matched glob pattern "//zipfs:/a/*"
Of course, this also impacts other file commands like file stat, file isdir, cd etc.
Referenced by5
e5b63acf2fMerge [49456a66de890668]: Fix [02acab5aea], [d8a354f7d9], [62e5508ee], [4af110a6a1], [02acab5aea] - file ensemble bugs for zipfs. check-in2024-08-22 17:30:255829bf4ce7Merge [2243a8bc7bf16d14]: Fix [02acab5aea], zipfs file exists and stat fixes. zipfs.test zipfs-write-unreadable segmentation fault start at the commit. Assuming it will be fixed in a future merge from trunk. check-in2024-08-22 14:26:4249456a66deMerge 8.7 - Fix [02acab5aea], [d8a354f7d9], [62e5508ee], [4af110a6a1], [02acab5aea] - file ensemble bugs for zipfs check-in2023-10-02 07:00:29735e596737Fix [02acab5aea], [d8a354f7d9], [62e5508ee], [4af110a6a1], [02acab5aea] - file ensemble bugs for zipfs check-in2023-10-02 06:44:2116746b4a5cBug [02acab5aea] - zipfs file exists and stat fixes check-in2023-09-25 16:23:59
apnadkarni Ticket [02acab5aea]: 3 changes
[History diff]2023-09-15 05:46:52
apnadkarnimarkdown2023-10-02 07:02:15
file ensemble bugs fixed in [735e596737]. glob and UNC interpretation already tracked in separate tickets.
Log in (anonymous is fine) to add a comment.