Lines Matching refs:source_path
392 def copy_file_or_directory(self, source_path, destination_path): argument
399 if self._same_file(source_path, destination_path):
402 if source_path.endswith('/'):
404 assert os.path.isdir(source_path)
406 for filename in os.listdir(source_path):
408 os.path.join(source_path, filename),
410 elif os.path.isdir(source_path):
411 shutil.copytree(source_path, destination_path, symlinks=True)
412 elif os.path.islink(source_path):
414 link_to = os.readlink(source_path)
417 shutil.copy(source_path, destination_path)
420 def _same_file(self, source_path, destination_path): argument
428 return os.path.samefile(source_path, destination_path)
475 def _sync_get_file_from(self, hostname, source_path, destination_path): argument
477 'destination_path: %s', hostname, source_path,
481 host.get_file(source_path, destination_path, delete_dest=True)
484 def get_file_from(self, hostname, source_path, destination_path): argument
486 (hostname, source_path, destination_path))
489 def sync_send_file_to(self, hostname, source_path, destination_path, argument
493 source_path, destination_path, can_fail)
497 host.send_file(source_path, destination_path, delete_dest=True)
502 if os.path.isdir(source_path):
503 failed_file = os.path.join(source_path, _TRANSFER_FAILED_FILE)
515 self.copy_file_or_directory(source_path, copy_to)
518 def send_file_to(self, hostname, source_path, destination_path, argument
521 (hostname, source_path, destination_path,