extractFileToDisk is creating directory structure but files are not written.
Closed this issue · 4 comments
Files are created but not written, so all files are 0 bytes length. I will try to use extractArchiveToDisk to see if works better.
UPDATE: tested extractArchiveToDisk and same issue is present.
UPDATE: tested with InputFileStream and OutputFileStream strategy and same issue is present. (See README)
UPDATE: works with the strategy found in the example (but executable permission is not maintained, like unzip does)
Using Linux unzip command on the same ZIP file writes files successfully and maintain file premissions.
More info: Executed on Debian 9.5 (WSL on Windows 10)
UPDATE: I was using version 3.3.4. Now, with version 3.3.5 works fine writing file content.
Using extractFileToDisk & extractArchiveToDisk methods & InputFileStream and OutputFileStream strategy:
Seems to be big bugs to be resolved and some functionality to be added (maintain permissions).
Does anyone knows a better unzipper package for Dart?. This package is great, but use it force me to bypass these issue by adding tricky code
Are you using the latest version of the archive package, 3.3.5? There was a recent bug that with that which was fixed in the latest version.
You are right. I'm using 3.3.4. But is weird (I normally don't specify package versions on pubspec.yaml) because I installed it yesterday and should have taken the latest version (but this is another topic). I will test and comment the results. Thanks
extractArchiveToDisk tested with version 3.3.5 and now works writting file content. Still not preserving file permissions.