os.path.join()
  • References/Python/Python/File & Directory Access

os.path.join(path, *paths) Join one or more path components intelligently. The return value is the concatenation of path

2025-01-10 15:47:30
pathlib.PurePath.is_reserved()
  • References/Python/Python/File & Directory Access

PurePath.is_reserved() With PureWindowsPath, return True if the path is considered reserved under

2025-01-10 15:47:30
pathlib.Path
  • References/Python/Python/File & Directory Access

class pathlib.Path(*pathsegments) A subclass of PurePath, this class represents concrete paths of the system’s

2025-01-10 15:47:30
shutil.copymode()
  • References/Python/Python/File & Directory Access

shutil.copymode(src, dst, *, follow_symlinks=True) Copy the permission bits from src to dst. The file contents

2025-01-10 15:47:30
shutil.copytree()
  • References/Python/Python/File & Directory Access

shutil.copytree(src, dst, symlinks=False, ignore=None, copy_function=copy2, ignore_dangling_symlinks=False) Recursively copy

2025-01-10 15:47:30
linecache.getline()
  • References/Python/Python/File & Directory Access

linecache.getline(filename, lineno, module_globals=None) Get line lineno from file named filename. This function

2025-01-10 15:47:30
pathlib.PurePath.with_name()
  • References/Python/Python/File & Directory Access

PurePath.with_name(name) Return a new path with the name changed. If the original path doesn’t have a name, ValueError

2025-01-10 15:47:30
tempfile.TemporaryFile()
  • References/Python/Python/File & Directory Access

tempfile.TemporaryFile(mode='w+b', buffering=None, encoding=None, newline=None, suffix=None, prefix=None, dir=None) Return a

2025-01-10 15:47:30
pathlib.Path.iterdir()
  • References/Python/Python/File & Directory Access

Path.iterdir() When the path points to a directory, yield path objects of the directory contents:

2025-01-10 15:47:30
pathlib.PurePath.parts
  • References/Python/Python/File & Directory Access

PurePath.parts A tuple giving access to the path’s various components:

2025-01-10 15:47:30