[warning] backup checking

This commit is contained in:
Eshan Roy (Eshanized)
2024-04-26 14:21:15 +05:30
parent f2ffc7992d
commit 2505326029

View File

@@ -199,10 +199,10 @@ def check_value(list, value):
data.remove(i) data.remove(i)
return data return data
def check_backups(now): # def check_backups(now):
if not os.path.exists(home + "/" + bd + "/Backup-" + now.strftime("%Y-%m-%d %H")): # if not os.path.exists(home + "/" + bd + "/Backup-" + now.strftime("%Y-%m-%d %H")):
os.makedirs(home + "/" + bd + "/Backup-" + now.strftime("%Y-%m-%d %H"), 0o777) # os.makedirs(home + "/" + bd + "/Backup-" + now.strftime("%Y-%m-%d %H"), 0o777)
permissions(home + "/" + bd + "/Backup-" + now.strftime("%Y-%m-%d %H")) # permissions(home + "/" + bd + "/Backup-" + now.strftime("%Y-%m-%d %H"))
def file_check(file): def file_check(file):
if os.path.isfile(file): if os.path.isfile(file):