About 600 results
Open links in new tab
  1. pathlib — Object-oriented filesystem paths — Python 3.14.2 …

    2 days ago · pathlib normalizes Path("my_folder/") to Path("my_folder"), which changes a path’s meaning when supplied to various operating system APIs and command-line utilities.

  2. os.path — Common pathname manipulations — Python 3.14.2 …

    3 days ago · The os.path module is always the path module suitable for the operating system Python is running on, and therefore usable for local paths. However, you can also import and use the individual …

  3. glob — Unix style pathname pattern expansion - Python

    2 days ago · This function can support paths relative to directory descriptors with the dir_fd parameter. If recursive is true, the pattern “ ** ” will match any files and zero or more directories, subdirectories …

  4. File and Directory Access — Python 3.14.2 documentation

    2 days ago · The modules described in this chapter deal with disk files and directories. For example, there are modules for reading the properties of files, manipulating paths in a portable way, and …

  5. stat — Interpreting stat () results — Python 3.14.2 documentation

    2 days ago · Normally, you would use the os.path.is*() functions for testing the type of a file; the functions here are useful when you are doing multiple tests of the same file and wish to avoid the …

  6. 4. Using Python on Windows — Python 3.11.14 documentation

    Mar 11, 2014 · Before looking for installed Python interpreters, this form will search the executable PATH for a Python executable matching the name provided as the first argument.

  7. tempfile — Generate temporary files and directories - Python

    2 days ago · It cannot be a path-like object. If tempdir is None (the default) at any call to any of the above functions except gettempprefix() it is initialized following the algorithm described in gettempdir().

  8. shutil — High-level file operations — Python 3.14.2 documentation

    On Unix filesystems, path must point to a path within a mounted filesystem partition. On those platforms, CPython doesn’t attempt to retrieve disk usage information from non-mounted filesystems.

  9. os — Miscellaneous operating system interfaces — Python 3.14.2 ...

    To obtain stat results for the final path in this case, use the os.path.realpath() function to resolve the path name as far as possible and call lstat() on the result.

  10. 17.1. subprocess — 子进程管理 — Python 2.7.18 文档

    Feb 7, 2018 · On Unix, if args is a string, the string is interpreted as the name or path of the program to execute. However, this can only be done if not passing arguments to the program.