Commit dd87f8b9 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Added comment.

parent d7749d1c
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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