Skip to content
Permalink
Browse files

bug fix: relative path issue while compressing

  • Loading branch information...
usmannasir committed Aug 29, 2019
1 parent eb80ea8 commit 7b7549dd2590e3671767b73f30308c537f8e2da1
Showing with 6 additions and 3 deletions.
  1. +5 −2 filemanager/filemanager.py
  2. +1 −1 plogical/processUtilities.py
@@ -386,9 +386,12 @@ def compress(self):
command = 'tar -czvf ' + compressedFileName + ' '

for item in self.data['listOfFiles']:
command = command + self.returnPathEnclosed(self.data['basePath'] + '/' + item) + ' '
command = '%s%s ' % (command, self.returnPathEnclosed(item))

ProcessUtilities.executioner(command, website.externalApp)

finalCommand = 'cd %s && %s' % (self.data['basePath'], command)

ProcessUtilities.executioner(finalCommand, website.externalApp)

self.changeOwner(self.data['compressedFileName'])

@@ -198,7 +198,7 @@ def sendCommand(command, user=None):
command = command.replace('sudo', '')
sock.sendall(command)

#logging.writeToFile(command)
logging.writeToFile(command)

data = ""

0 comments on commit 7b7549d

Please sign in to comment.
You can’t perform that action at this time.