mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-26 09:19:05 +01:00
bug fix: avoid possible removal of directories
This commit is contained in:
@@ -378,15 +378,15 @@ class backupUtilities:
|
||||
print('1,None')
|
||||
|
||||
except BaseException as msg:
|
||||
try:
|
||||
os.remove(os.path.join(backupPath, backupName + ".tar.gz"))
|
||||
except:
|
||||
pass
|
||||
|
||||
try:
|
||||
rmtree(tempStoragePath)
|
||||
except:
|
||||
pass
|
||||
# try:
|
||||
# os.remove(os.path.join(backupPath, backupName + ".tar.gz"))
|
||||
# except:
|
||||
# pass
|
||||
#
|
||||
# try:
|
||||
# rmtree(tempStoragePath)
|
||||
# except:
|
||||
# pass
|
||||
|
||||
status = os.path.join(backupPath, 'status')
|
||||
logging.CyberCPLogFileWriter.statusWriter(status, "Aborted, " + str(msg) + ".[365] [5009]")
|
||||
|
||||
Reference in New Issue
Block a user