def rmove(self, src, dst): from pycopia.remote import Client agent = Client.get_remote(self.name.split(".")[0]) Client.remote_copy(agent, src, dst) agent.unlink(src)
def rcopy(self, argv): """rcopy <remotefile> <localfile> Copies a file from the remote agent to the local file system.""" src = argv[1] dest = argv[2] Client.remote_copy(self._obj, src, dest)
def rcopy(self, argv): """rcopy <remotefile> <localfile> Copies a file from the remote agent to the local file system.""" src = argv[1] dest = argv[2] remoteclient.remote_copy(self._client, src, dest)