linecache.lazycache()
  • References/Python/Python/File & Directory Access

linecache.lazycache(filename, module_globals) Capture enough detail about a non-file-based module to permit getting its lines

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

Path.group() Return the name of the group owning the file.

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

Path.symlink_to(target, target_is_directory=False) Make this path a symbolic link to target. Under Windows, ta

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

os.path.getmtime(path) Return the time of last modification of path. The return value is a number giving the number

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

fnmatch.fnmatchcase(filename, pattern) Test whether filename matches pattern, returning

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

shutil.which(cmd, mode=os.F_OK | os.X_OK, path=None) Return the path to an executable which would be run if the given cmd

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

Path.rmdir() Remove this directory. The directory must be empty.

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

linecache.clearcache() Clear the cache. Use this function if you no longer need lines from files previously read using getline()

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

shutil.register_unpack_format(name, extensions, function[, extra_args[, description]]) Registers an unpack format. name

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

shutil.disk_usage(path) Return disk usage statistics about the given path as a named tuple

2025-01-10 15:47:30