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
filecmp.dircmp.subdirs
  • References/Python/Python/File & Directory Access

subdirs A dictionary mapping names in common_dirs to dircmp objects.

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

Path.mkdir(mode=0o777, parents=False, exist_ok=False) Create a new directory at this given path. If mode is given,

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

os.path.lexists(path) Return True if path refers to an existing path. Returns True for broken

2025-01-10 15:47:30