mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 06:59:15 +08:00
Fix ignoring files
This commit is contained in:
parent
1b1d99c4bc
commit
c827703417
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user