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
os.path.realpath()
  • References/Python/Python/File & Directory Access

os.path.realpath(path) Return the canonical path of the specified filename, eliminating any symbolic links encountered in the

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

class pathlib.PureWindowsPath(*pathsegments) A subclass of PurePath, this path flavour represents Windows filesystem

2025-01-10 15:47:30
os.path.ismount()
  • References/Python/Python/File & Directory Access

os.path.ismount(path) Return True if pathname path is a mount point: a point in a

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

tempfile.gettempprefixb() Same as gettempprefix() but the return value is in bytes.

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

Path.replace(target) Rename this file or directory to the given target. If target points to an existing file

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

glob.iglob(pathname, recursive=False) Return an iterator which yields the same values

2025-01-10 15:47:30
os.path.split()
  • References/Python/Python/File & Directory Access

os.path.split(path) Split the pathname path into a pair, (head, tail) where tail is the last

2025-01-10 15:47:30
os.path.expandvars()
  • References/Python/Python/File & Directory Access

os.path.expandvars(path) Return the argument with environment variables expanded. Substrings of the form $name

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

tempfile.NamedTemporaryFile(mode='w+b', buffering=None, encoding=None, newline=None, suffix=None, prefix=None, dir=None, delete=True) This

2025-01-10 15:47:30