Esempio n. 1
0
 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
Esempio n. 2
0
    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
Esempio n. 3
0
 def local_chdir(self, path):
     res = self.send_command("lcd %s" % format_path(path))
     #        print "GOT: ", res, res.strip() == ""
     return res.strip() == ""
Esempio n. 4
0
    def local_chdir(self, path):
        res = self.send_command("lcd %s" % format_path(path))
#        print "GOT: ", res, res.strip() == ""
        return res.strip() == ""