Fix ignoring files

This commit is contained in:
ChrisTerBeke 2018-05-08 13:47:02 +02:00
parent 1b1d99c4bc
commit c827703417

View File

@ -65,7 +65,7 @@ class Backup:
for file_name in files: for file_name in files:
# Add all files except the ignored ones. # Add all files except the ignored ones.
if file_name in self.IGNORED_FILES: if file_name in self.IGNORED_FILES:
return continue
absolute_path = os.path.join(root, file_name) absolute_path = os.path.join(root, file_name)
relative_path = absolute_path[len(root_path) + len(os.sep):] relative_path = absolute_path[len(root_path) + len(os.sep):]
archive.write(absolute_path, relative_path) archive.write(absolute_path, relative_path)