Skip to content

Commit

Permalink
Store top-level directories explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndr42 committed Mar 5, 2022
1 parent 795192c commit 47d0502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/icepack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def create_archive(
if src_path.is_file():
sources = [src_path]
elif src_path.is_dir():
sources = list(File.children(src_path))
sources = [src_path] + list(File.children(src_path))
sources.sort(key=_sort_key)
else:
raise Exception(f'Invalid source: {src_path}')
Expand Down

0 comments on commit 47d0502

Please sign in to comment.