Open acabarbaye opened 11 months ago
i suspect this is because zipfs uses filepath instead of path
https://github.com/spf13/afero/blob/master/zipfs/fs.go#L40 https://github.com/spf13/afero/blob/master/zipfs/file.go#L111
on windows, filepath will separate with '\', but packages such as zip (and embed, and others) will only ever use posix-style "/" even on windows, so path should be used.
i think changing filepath -> path here is all that's needed, since the underlying zipfs implementation will never change.
I have run the following test on Windows with attached valid zip file testunzip.zip and I am getting the following errors
readdir \: The system cannot find the file specified.
when calling
Readdirnames
orReaddir