- ArcPy and ArcGIS(Second Edition)
- Silas Toms Dara O'Beirne
- 76字
- 2025-04-04 19:02:02
The OS (operating system) module
The os module, part of the standard library, is very useful for a number of regular operations within Python. The most used part of the os module is the os.path method, which allows the script to control file paths, and to divide them into directory paths and base paths. There is also a useful method, os.walk, which will "walk" a directory and return all files within the folders and the subfolders.