Searched refs:backup_path (Results 1 – 3 of 3) sorted by relevance
21 def p2p_backup_files(backup_path=P2P_SHARE_BACKUP_PATH): argument30 if os.path.exists(backup_path):31 shutil.rmtree(backup_path)33 os.rename(P2P_SHARE_PATH, backup_path)38 def p2p_restore_files(backup_path=P2P_SHARE_BACKUP_PATH): argument47 if os.path.exists(backup_path):48 os.rename(backup_path, P2P_SHARE_PATH)
92 backup_path = path + ".bck"96 fd = open(backup_path, "w")106 os.rename(backup_path, path)
164 backup_path = path + ".bck"168 fd = open(backup_path, "w")178 os.rename(backup_path, path)