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
This is not an issue but more of a specific usecase fix.
I encountered an error (ENOENT) when the a zip file contains an empty dir. The problem might be generated by the zipping utility, because the type field id set to file instead of dir.
if (x.type === 'directory' || x.path.endsWith('/')) {
solves the problem.
It looks like nobody else had this issue so I'm posting it this just in case someone, in the future might have the same problem as I did. My specific use case is related to the unzipping of a Writerside created archive. There is an empty resources folder (probably is only empty in this specific situation) that is included in the archive but errors on extraction.
Thank you all for your time and effort.
The text was updated successfully, but these errors were encountered:
vladblindu
changed the title
Empty dir in zip folder error
Specific uscase empty dir in zip archive error
Jan 7, 2024
vladblindu
changed the title
Specific uscase empty dir in zip archive error
Specific uscase error: empty dir in zip archive
Jan 7, 2024
Hi there,
This is not an issue but more of a specific usecase fix.
I encountered an error (ENOENT) when the a zip file contains an empty dir. The problem might be generated by the zipping utility, because the type field id set to file instead of dir.
Changing this line to:
solves the problem.
It looks like nobody else had this issue so I'm posting it this just in case someone, in the future might have the same problem as I did. My specific use case is related to the unzipping of a Writerside created archive. There is an empty resources folder (probably is only empty in this specific situation) that is included in the archive but errors on extraction.
Thank you all for your time and effort.
The text was updated successfully, but these errors were encountered: