| 1 |
.. _filesys: |
| 2 |
|
| 3 |
************************* |
| 4 |
File and Directory Access |
| 5 |
************************* |
| 6 |
|
| 7 |
The modules described in this chapter deal with disk files and directories. For |
| 8 |
example, there are modules for reading the properties of files, manipulating |
| 9 |
paths in a portable way, and creating temporary files. The full list of modules |
| 10 |
in this chapter is: |
| 11 |
|
| 12 |
|
| 13 |
.. toctree:: |
| 14 |
|
| 15 |
pathlib.rst |
| 16 |
os.path.rst |
| 17 |
stat.rst |
| 18 |
filecmp.rst |
| 19 |
tempfile.rst |
| 20 |
glob.rst |
| 21 |
fnmatch.rst |
| 22 |
linecache.rst |
| 23 |
shutil.rst |
| 24 |
|
| 25 |
|
| 26 |
.. seealso:: |
| 27 |
|
| 28 |
Module :mod:`os` |
| 29 |
Operating system interfaces, including functions to work with files at a |
| 30 |
lower level than Python :term:`file objects <file object>`. |
| 31 |
|
| 32 |
Module :mod:`io` |
| 33 |
Python's built-in I/O library, including both abstract classes and |
| 34 |
some concrete classes such as file I/O. |
| 35 |
|
| 36 |
Built-in function :func:`open` |
| 37 |
The standard way to open files for reading and writing with Python. |