pathlib.WindowsPath
  • References/Python/Python/File & Directory Access

class pathlib.WindowsPath(*pathsegments) A subclass of Path and PureWindowsPath, this class represents

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

fileinput.filename() Return the name of the file currently being read. Before the first line has been read, returns None

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

stat.S_ISREG(mode) Return non-zero if the mode is from a regular file.

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

Path.is_dir() Return True if the path points to a directory (or a symbolic link pointing to a directory), False

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

shutil.copyfileobj(fsrc, fdst[, length]) Copy the contents of the file-like object fsrc to the file-like object fdst

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

Path.glob(pattern) Glob the given pattern in the directory represented by this path, yielding all matching files (of

2025-01-10 15:47:30
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