Skip to content

Commit 3ace519

Browse files
authored
Merge pull request #3 from mcginty/ignore-mac-shit
macOS: ignore .DS_Store file when repacking
2 parents 9c9b78b + b7cc339 commit 3ace519

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.py

+2
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ def compress_tar(self, path, target):
145145
files = os.listdir(path)
146146
tar = tarfile.open(target, 'w')
147147
for file in files:
148+
if file.startswith("."):
149+
continue
148150
file_path = os.path.join(path, file)
149151
self.logger.debug('Adding "{}" to archive.'.format(file_path))
150152
# Remove the subfolder name so that the archive won't contain the subfolder.

0 commit comments

Comments
 (0)