def getfile(self, local_file, remote_file): res = self.send_command( "get %s %s" % (format_path(remote_file), format_path(local_file))) # print "GETFILE: ", res if "No such file or directory" in res: return False return True
def getfile(self, local_file, remote_file): res = self.send_command("get %s %s" % (format_path(remote_file), format_path(local_file)) ) # print "GETFILE: ", res if "No such file or directory" in res: return False return True
def local_chdir(self, path): res = self.send_command("lcd %s" % format_path(path)) # print "GOT: ", res, res.strip() == "" return res.strip() == ""