Skip to content

Commit

Permalink
Made sure zip files get processed even if they failed to import previ…
Browse files Browse the repository at this point in the history
…ously (this can happen if the files are copy & pasted at a specific time)
  • Loading branch information
heyJordanParker committed Dec 30, 2021
1 parent 6a3c1a7 commit 9a6c194
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resolveBinTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,6 @@ def syncBinWithFolder(self, folder, recursive = True):
for file in files:
filePath = normpath(os.path.join(root, file))

if filePath in self.notAddedFiles:
continue

# handle archives
if zipfile.is_zipfile(filePath):
# unzip archives
Expand All @@ -353,6 +350,9 @@ def syncBinWithFolder(self, folder, recursive = True):
# no need to import zip files
continue

if filePath in self.notAddedFiles:
continue

# is the file ignored
if getFileExtensionFromPath(filePath) in ignoredFileExtensions:
print(f"[{self.getName()}] Skipping ignored file (by extension) {filePath}")
Expand Down

0 comments on commit 9a6c194

Please sign in to comment.