Fix argument

This commit is contained in:
2023-04-12 04:08:26 +02:00
parent 1eed4ed198
commit 5efae02594

View File

@@ -137,7 +137,7 @@ class File():
# Create backup: # Create backup:
if not options.dry_run and self.filepath.exists() and options.backup: if not options.dry_run and self.filepath.exists() and options.backup:
backup_filename = sanitize_filename( backup_filename = sanitize_filename(
f"{self.basename}_{self.mtimeiso}{self.extension}") filename=f"{self.basename}_{self.mtimeiso}{self.extension}")
backup_path = self.dirpath.joinpath(backup_filename) backup_path = self.dirpath.joinpath(backup_filename)
logging.info(f"Creating backup to {backup_path}") logging.info(f"Creating backup to {backup_path}")
self.filepath.rename(backup_path) self.filepath.rename(backup_path)