Simplify human conversation and hide internal audit envelopes
This commit is contained in:
@@ -34,7 +34,9 @@ def main():
|
||||
elif item.is_file():
|
||||
shutil.copy2(item,stage/name)
|
||||
if target.exists():
|
||||
backup=target.with_name(target.name+'.backup-'+datetime.now().strftime('%Y%m%d%H%M%S'))
|
||||
backup_root=base/'skill-backups'
|
||||
backup_root.mkdir(parents=True,exist_ok=True)
|
||||
backup=backup_root/(target.name+'.backup-'+datetime.now().strftime('%Y%m%d%H%M%S%f'))
|
||||
if backup.exists():
|
||||
raise ValueError('Backup destination exists')
|
||||
os.replace(target,backup)
|
||||
|
||||
Reference in New Issue
Block a user