mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-11 07:46:10 +01:00
bug fix: https://youtu.be/LkjN5DCWb0o?t=430
This commit is contained in:
@@ -648,7 +648,7 @@ class FileManager:
|
||||
self.changeOwner(self.returnPathEnclosed(self.data['completePath'] + '/' + myfile.name))
|
||||
|
||||
try:
|
||||
os.remove(self.returnPathEnclosed(UploadPath + RanddomFileName))
|
||||
os.remove(UploadPath + RanddomFileName)
|
||||
except:
|
||||
pass
|
||||
|
||||
@@ -657,7 +657,7 @@ class FileManager:
|
||||
|
||||
except BaseException as msg:
|
||||
try:
|
||||
os.remove(self.returnPathEnclosed(UploadPath + RanddomFileName))
|
||||
os.remove(UploadPath + RanddomFileName)
|
||||
except:
|
||||
pass
|
||||
return self.ajaxPre(0, str(msg))
|
||||
|
||||
Reference in New Issue
Block a user