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))
|
self.changeOwner(self.returnPathEnclosed(self.data['completePath'] + '/' + myfile.name))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
os.remove(self.returnPathEnclosed(UploadPath + RanddomFileName))
|
os.remove(UploadPath + RanddomFileName)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -657,7 +657,7 @@ class FileManager:
|
|||||||
|
|
||||||
except BaseException as msg:
|
except BaseException as msg:
|
||||||
try:
|
try:
|
||||||
os.remove(self.returnPathEnclosed(UploadPath + RanddomFileName))
|
os.remove(UploadPath + RanddomFileName)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
return self.ajaxPre(0, str(msg))
|
return self.ajaxPre(0, str(msg))
|
||||||
|
|||||||
Reference in New Issue
Block a user