Lines Matching refs:local_path
242 path = self.local_path(name_or_path).expanduser()
428 return self.local_path(self.cache_dir(name))
445 with self.local_path(file).open(encoding=encoding) as f:
450 with self.local_path(file).open("rb") as f:
462 with self.local_path(file).open("w", encoding=encoding) as f:
471 return self.local_path(self.copy_file(from_path, to_path))
490 from_path = self.local_path(from_path)
491 to_path = self.local_path(to_path)
498 from_path = self.local_path(from_path)
499 to_path = self.local_path(to_path)
509 path = self.local_path(path)
520 return self.local_path(src_path).rename(dst_path)
527 dst_path = self.local_path(dst)
539 return self.local_path(path)
541 def local_path(self, path: pth.AnyPathLike) -> pth.LocalPath: member in Platform
551 return self.local_path(platform_path).absolute()
559 self.local_path(path).touch(exist_ok=True)
565 self.local_path(path).mkdir(parents=parents, exist_ok=exist_ok)
572 tmp_file: LocalPath = self.host_platform.local_path(
605 return self.local_path(path).exists()
608 return self.local_path(path).is_file()
611 return self.local_path(path).is_dir()
615 return self.local_path(path).iterdir()
620 return self.local_path(path).glob(pattern)
624 return self.local_path(path).stat().st_size
733 return psutil.disk_usage(str(self.local_path(path)))