Loading transfer_service/tape_client.py +2 −1 Original line number Diff line number Diff line Loading @@ -57,6 +57,7 @@ class TapeClient(object): else: sys.exit("cmd_exit_code = FAILURE") # Copies files/dirs recursively by passing their absolute paths def copy(self, srcPath, destPath): self.scp = scp.SCPClient(self.client.get_transport()) print(f"Copying {srcPath} in {destPath}") Loading @@ -65,7 +66,7 @@ class TapeClient(object): elif os.path.isfile(srcPath): self.scp.put(srcPath, destPath) else: sys.exit("This is a special file!") sys.exit("FATAL: invalid file/dir.") self.scp.close() # Closes the connection Loading Loading
transfer_service/tape_client.py +2 −1 Original line number Diff line number Diff line Loading @@ -57,6 +57,7 @@ class TapeClient(object): else: sys.exit("cmd_exit_code = FAILURE") # Copies files/dirs recursively by passing their absolute paths def copy(self, srcPath, destPath): self.scp = scp.SCPClient(self.client.get_transport()) print(f"Copying {srcPath} in {destPath}") Loading @@ -65,7 +66,7 @@ class TapeClient(object): elif os.path.isfile(srcPath): self.scp.put(srcPath, destPath) else: sys.exit("This is a special file!") sys.exit("FATAL: invalid file/dir.") self.scp.close() # Closes the connection Loading