File and Directory Access

文件和目录访问

本章介绍的模块处理磁盘文件和目录。例如,有用于读取文件属性,以便携方式操作路径以及创建临时文件的模块。本章中完整的模块列表是:

  • 10.1. os.path - 通用路径名操作

- [10.10.2. Archiving operations](shutil#archiving-operations) - [10.10.2.1. Archiving example](shutil#archiving-example)

  • 10.11. dircache - 缓存的目录列表

另请参阅

Section文件对象Python内置文件对象的描述。 Module os 操作系统接口,包括处理比内置文件对象更低级别文件的功能。

https://docs.python.org/2.7/library/filesys.html