bug fix: permissions issue in file manager

This commit is contained in:
Usman Nasir
2020-04-28 04:37:21 +05:00
parent 32598e6865
commit 577e1425cf
2 changed files with 6 additions and 3 deletions

View File

@@ -193,6 +193,9 @@ class remoteTransferUtilities:
command = "sudo scp -o StrictHostKeyChecking=no -i /root/.ssh/cyberpanel " + completedPathToSend + " root@" + IPAddress + ":/home/backup/transfer-" + folderNumber + "/"
subprocess.call(shlex.split(command), stdout=writeToFile)
if os.path.exists(ProcessUtilities.debugPath):
logging.CyberCPLogFileWriter.writeToFile(command)
os.remove(completedPathToSend)
except BaseException as msg: