This commit is contained in:
Usman Nasir 2021-10-05 12:54:35 +05:00
parent 9741c81a7b
commit a158065918
1 changed files with 2 additions and 2 deletions

View File

@ -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))