Lines Matching refs:to_path
466 to_path: pth.LocalPath) -> pth.LocalPath:
471 return self.local_path(self.copy_file(from_path, to_path))
473 def push(self, from_path: pth.LocalPath, to_path: pth.AnyPath) -> pth.AnyPath:
478 return self.copy_file(from_path, to_path)
480 def copy(self, from_path: pth.AnyPath, to_path: pth.AnyPath) -> pth.AnyPath:
485 return self.copy_dir(from_path, to_path)
486 return self.copy_file(from_path, to_path)
489 to_path: pth.AnyPathLike) -> pth.AnyPath:
491 to_path = self.local_path(to_path)
492 self.mkdir(to_path.parent, parents=True, exist_ok=True)
493 shutil.copytree(os.fspath(from_path), os.fspath(to_path))
494 return to_path
497 to_path: pth.AnyPathLike) -> pth.AnyPath:
499 to_path = self.local_path(to_path)
500 self.mkdir(to_path.parent, parents=True, exist_ok=True)
501 shutil.copy2(os.fspath(from_path), os.fspath(to_path))
502 return to_path