Skip to content

Commit

Permalink
fix pack/unpack when input/output directory had no trailing directory…
Browse files Browse the repository at this point in the history
… separator
  • Loading branch information
0BuRner committed May 13, 2019
1 parent d0e20cd commit 26e9171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions corona-archiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ def _write_data_entry(self, content, offset, filename):
archiver = CoronaArchiver()

if method == '-p':
archiver.pack(input_dir=input, output_file=output)
archiver.pack(input_dir=os.path.join(input, ''), output_file=output)
elif method == '-u':
archiver.unpack(input_file=input, output_dir=output)
archiver.unpack(input_file=input, output_dir=os.path.join(output, ''))
else:
print("Invalid method")

0 comments on commit 26e9171

Please sign in to comment.