mirror of
https://github.com/Snigdha-OS/snigdhaos-blackbox.git
synced 2025-09-22 04:25:04 +02:00
[warning] backup checking
This commit is contained in:
@@ -199,10 +199,10 @@ def check_value(list, value):
|
||||
data.remove(i)
|
||||
return data
|
||||
|
||||
def check_backups(now):
|
||||
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)
|
||||
permissions(home + "/" + bd + "/Backup-" + now.strftime("%Y-%m-%d %H"))
|
||||
# def check_backups(now):
|
||||
# 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)
|
||||
# permissions(home + "/" + bd + "/Backup-" + now.strftime("%Y-%m-%d %H"))
|
||||
|
||||
def file_check(file):
|
||||
if os.path.isfile(file):
|
||||
|
Reference in New Issue
Block a user