tempfile.gettempprefix()
  • References/Python/Python/File & Directory Access

tempfile.gettempprefix() Return the filename prefix used to create temporary files. This does not contain the directory component

2025-01-10 15:47:30
filecmp.dircmp.common_files
  • References/Python/Python/File & Directory Access

common_files Files in both a and b.

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

tempfile.tempdir When set to a value other than None, this variable defines the default value for the dir

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

shutil.register_archive_format(name, function[, extra_args[, description]]) Register an archiver for the format name

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

fileinput.isstdin() Returns true if the last line was read from sys.stdin, otherwise returns false.

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

glob.glob(pathname, *, recursive=False) Return a possibly-empty list of path names that match pathname, which must

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

Path.write_bytes(data) Open the file pointed to in bytes mode, write data to it, and close the file:

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

Path.touch(mode=0o666, exist_ok=True) Create a file at this given path. If mode is given, it is combined with the process’

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

os.path.samefile(path1, path2) Return True if both pathname arguments refer to the same file or directory. This

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

PurePath.joinpath(*other) Calling this method is equivalent to combining the path with each of the other arguments

2025-01-10 15:47:30