fnmatch.translate()
  • References/Python/Python/File & Directory Access

fnmatch.translate(pattern) Return the shell-style pattern converted to a regular expression.

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

fileinput.hook_compressed(filename, mode) Transparently opens files compressed with gzip and bzip2 (recognized by the extensions

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

stat.S_ISSOCK(mode) Return non-zero if the mode is from a socket.

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
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
shutil.copystat()
  • References/Python/Python/File & Directory Access

shutil.copystat(src, dst, *, follow_symlinks=True) Copy the permission bits, last access time, last modification time, and flags

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

PurePath.as_uri() Represent the path as a file URI.

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

PurePath.is_absolute() Return whether the path is absolute or not. A path is considered absolute if it has both a root and (if

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

tempfile.SpooledTemporaryFile(max_size=0, mode='w+b', buffering=None, encoding=None, newline=None, suffix=None, prefix=None, dir=None) This

2025-01-10 15:47:30