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)
|
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):
|
||||||
|
Reference in New Issue
Block a user