Home | History | Annotate | Download | only in scheduler

Lines Matching refs:destination_path

392     def copy_file_or_directory(self, source_path, destination_path):
399 if self._same_file(source_path, destination_path):
401 self._ensure_directory_exists(os.path.dirname(destination_path))
405 assert os.path.isdir(destination_path)
409 os.path.join(destination_path, filename))
411 shutil.copytree(source_path, destination_path, symlinks=True)
415 os.symlink(link_to, destination_path)
417 shutil.copy(source_path, destination_path)
420 def _same_file(self, source_path, destination_path):
426 if not os.path.exists(destination_path):
428 return os.path.samefile(source_path, destination_path)
475 def _sync_get_file_from(self, hostname, source_path, destination_path):
477 'destination_path: %s', hostname, source_path,
478 destination_path)
479 self._ensure_directory_exists(os.path.dirname(destination_path))
481 host.get_file(source_path, destination_path, delete_dest=True)
484 def get_file_from(self, hostname, source_path, destination_path):
486 (hostname, source_path, destination_path))
489 def sync_send_file_to(self, hostname, source_path, destination_path,
492 'destination_path: %s, can_fail:%s', hostname,
493 source_path, destination_path, can_fail)
496 host.run('mkdir -p ' + os.path.dirname(destination_path))
497 host.send_file(source_path, destination_path, delete_dest=True)
507 (hostname, destination_path,
513 copy_to = destination_path + _TRANSFER_FAILED_FILE
518 def send_file_to(self, hostname, source_path, destination_path,
521 (hostname, source_path, destination_path,