Cannot add empty directory structures to output. #412
Labels
enhancement
New feature or request
for archiving
Issue on archiving, compression or encryption
for extraction
Issue on extraction, decompression or decryption
good first issue
Good for newcomers
help wanted
Extra attention is needed
Describe the bug
When an archive structure in memory contains empty directories such as:
empty-dir1/empty-dir2/empty-dir3
...then when adding these to an archive, they do not appear in the final output.
To Reproduce
Create a .7z file with an empty directory structure; taking the example above ('empty-dir1/empty-dir2/empty-dir3'):
7z a empty-dir-test.7z empty-dir1
Then recompress the test file with py7zr:
Expected behavior
Directory structure should be preserved.
Environment (please complete the following information):
Test data(please attach in the report):
An archive structure containing an empty directory (see 'To reproduce').
The text was updated successfully, but these errors were encountered: