Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2024-08-22
17:30
Merge [49456a66de890668]: Fix [02acab5aea], [d8a354f7d9], [62e5508ee], [4af110a6a1], [02acab5aea] - ... check-in: e5b63acf2f user: pooryorick tags: unchained, INCOMPATIBLE_LICENSE
14:26
Merge [2243a8bc7bf16d14]: Fix [02acab5aea], zipfs file exists and stat fixes. zipfs.test zipfs-writ... check-in: 5829bf4ce7 user: pooryorick tags: unchained, INCOMPATIBLE_LICENSE
2023-10-02
07:02 • Closed ticket [02acab5aea]: Intermediate directories in zipfs mounts are treated... artifact: 856e77079d user: apnadkarni
07:00
Merge 8.7 - Fix [02acab5aea], [d8a354f7d9], [62e5508ee], [4af110a6a1], [02acab5aea] - file ensemble ... check-in: 49456a66de user: apnadkarni tags: trunk, main
06:44
Fix [02acab5aea], [d8a354f7d9], [62e5508ee], [4af110a6a1], [02acab5aea] - file ensemble bugs for zip... check-in: 735e596737 user: apnadkarni tags: core-8-branch
2023-09-25
16:23
Bug [02acab5aea] - zipfs file exists and stat fixes check-in: 16746b4a5c user: apnadkarni tags: core-8-branch
2023-09-15
05:46 • Ticket [02acab5aea] Intermediate directories in zipfs mounts are treated as not ... artifact: 5b4d0f2386 user: apnadkarni
05:42 • New ticket [02acab5aea]. artifact: 4da21de89a user: apnadkarni

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
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.