Lines Matching refs:localpath
152 def copy_to(self, localpath, remotepath): argument
153 if os.path.islink(localpath):
154 localpath = os.path.dirname(localpath) + "/" + os.readlink(localpath)
155 command = self.scp + [localpath, '%s@%s:%s' % (self.user, self.ip, remotepath)]
158 def copy_from(self, remotepath, localpath): argument
159 command = self.scp + ['%s@%s:%s' % (self.user, self.ip, remotepath), localpath]
162 def copy_dir_to(self, localpath, remotepath): argument
167 for root, dirs, files in os.walk(localpath):
170 tmp_dir = os.path.join(root, d).replace(localpath, "")
177 tmp_file = os.path.join(root, f).replace(localpath, "")
207 def delete_dir_structure(self, localpath, remotepath): argument
233 for root, dirs, files in os.walk(localpath, topdown=False):
235 tmpdir = os.path.join(root).replace(localpath, "")
241 tmpdir = os.path.join(root, d).replace(localpath, "")