du command incorrect, host instead of path

This commit is contained in:
2023-08-25 20:28:22 +02:00
parent b75115515e
commit db03d8debf

View File

@@ -48,7 +48,7 @@ class File():
cmd = "du -hs '{}'".format(filePath)
if self.system.remote:
cmd = 'ssh {}@{} {}'.format(self.system.user, self.system.path, cmd)
cmd = 'ssh {}@{} {}'.format(self.system.user, self.system.host, cmd)
diskusageOutput = check_output(cmd, shell=True)