mirror of
https://github.com/infeeeee/dyn2py
synced 2025-12-16 22:16:18 +01:00
Fix argument
This commit is contained in:
@@ -137,7 +137,7 @@ class File():
|
||||
# Create backup:
|
||||
if not options.dry_run and self.filepath.exists() and options.backup:
|
||||
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)
|
||||
logging.info(f"Creating backup to {backup_path}")
|
||||
self.filepath.rename(backup_path)
|
||||
|
||||
Reference in New Issue
Block a user