-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add two more working test cases for zip files with directories
* A test for zip file with both a redundant directory and empty directories that should be retained. * A check that trrntzip -d removes the empty directories, even if the file has a proper TORRENTZIPPED comment.
- Loading branch information
1 parent
80fbe30
commit b64d4ec
Showing
4 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
description strip directories from already torrentzipped archive with only empty directories | ||
return 0 | ||
arguments -l -d directories-2.zip | ||
file directories-2.zip directories-2.tzip empty.tzip | ||
stdout | ||
Rezipping - directories-2.zip | ||
-------------------------------------------------- | ||
Directory a/c/ Removed | ||
Directory b/ Removed | ||
-------------------------------------------------- | ||
Rezipped 0 compressed files totaling 0 bytes. | ||
end-of-inline-data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
description torrentzip a zip archive with only directories, some empty | ||
return 0 | ||
arguments -l directories-2.zip | ||
file directories-2.zip directories-2.zip directories-2.tzip | ||
stdout | ||
Rezipping - directories-2.zip | ||
-------------------------------------------------- | ||
Directory a/ Removed | ||
Adding - a/c/ (0 bytes)...Done | ||
Adding - b/ (0 bytes)...Done | ||
-------------------------------------------------- | ||
Rezipped 2 compressed files totaling 0 bytes. | ||
end-of-inline-data |
Binary file not shown.
Binary file not shown.