fileinput.input()
  • References/Python/Python/File & Directory Access

fileinput.input(files=None, inplace=False, backup='', bufsize=0, mode='r', openhook=None) Create an instance of the FileInput

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

PurePath.parent The logical parent of the path: >>>

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

PurePath.root A string representing the (local or global) root, if any:

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

filecmp.clear_cache() Clear the filecmp cache. This may be useful if a file is compared so quickly after it is modified that

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
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
pathlib.Path.owner()
  • References/Python/Python/File & Directory Access

Path.owner() Return the name of the user owning the file.

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
pathlib.PurePath.anchor
  • References/Python/Python/File & Directory Access

PurePath.anchor The concatenation of the drive and root:

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

Path.is_block_device() Return True if the path points to a block device (or a symbolic link pointing to a block

2025-01-10 15:47:30