Skip to content
Snippets Groups Projects
Commit dd87f8b9 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Added comment.

parent d7749d1c
No related branches found
No related tags found
No related merge requests found
Pipeline #873 passed
......@@ -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}")
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment