You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I can tell the zipfs.Fs backend is intended to behave similarly to a BasePathFs which references an OsFs.
i.e. if your application supports providing input as a zip archive or as a directory - then the application should be able to use a BasePathFs or a zipfs.Fs without excessive consideration of which FS implementation has been used (based on the discussion in #146 and the source in the referenced spyre project repo).
However, there are cases where the filesystems behaviour differs:
Directory with no explicit entry in zip archive
Steps to reproduce
Create a directory with the following structure at /path/to/dir:
subdir_a/
├─ a_file.yaml
Create an archive of the same directory at /path/to/dir.zip using cd /path/to/dir; zip ..dir.zip subdir_a/a_file.yaml. This creates an archive with a single entry. Note that while there is no explicit entry for subdir_a/, if the archive is unzipped the resulting directory is identical to /path/to/dir.
Problem
As far as I can tell the
zipfs.Fs
backend is intended to behave similarly to aBasePathFs
which references anOsFs
.i.e. if your application supports providing input as a zip archive or as a directory - then the application should be able to use a
BasePathFs
or azipfs.Fs
without excessive consideration of which FS implementation has been used (based on the discussion in #146 and the source in the referenced spyre project repo).However, there are cases where the filesystems behaviour differs:
Directory with no explicit entry in zip archive
Steps to reproduce
/path/to/dir
:/path/to/dir.zip
usingcd /path/to/dir; zip ..dir.zip subdir_a/a_file.yaml
. This creates an archive with a single entry. Note that while there is no explicit entry forsubdir_a/
, if the archive is unzipped the resulting directory is identical to/path/to/dir
.Expected Output
Actual Output
Empty zip file
Steps to reproduce
/path/to/empty
/path/to/empty.zip
by creating an archive with a single file and then deleting the file:Expected Output
Actual Output
The text was updated successfully, but these errors were encountered: