From 25053260295d3932985f8115c489cff015e0990c Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" Date: Fri, 26 Apr 2024 14:21:15 +0530 Subject: [PATCH] [warning] backup checking --- blackbox/Functions_Ref_DO_NOT_MODIFY.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blackbox/Functions_Ref_DO_NOT_MODIFY.py b/blackbox/Functions_Ref_DO_NOT_MODIFY.py index 6764a6e..caabd3f 100644 --- a/blackbox/Functions_Ref_DO_NOT_MODIFY.py +++ b/blackbox/Functions_Ref_DO_NOT_MODIFY.py @@ -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):