Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5b4d0f23866950a231367c0cb19148a56d86575c8d10035917fff8c995cad050
Ticket: 02acab5aea7c3457889ec96a73b7213ce25ea7ca
Intermediate directories in zipfs mounts are treated as not existing
User & Date: apnadkarni on 2023-09-15 05:46:52
Changes

  1. comment changed to:
    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](https://core.tcl-lang.org/tcl/tktview/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.
    
  2. login: "apnadkarni"
  3. mimetype: "text/plain"