Python pathlib Tutorial: Paths, Read/Write, glob, mkdir and Practical File Scripts
Working with files is one of the first things you do in almost every Python project: open a CSV for a grade list, create a folder for uploads, find every .py file in a project, or build a path that works on both Windows and Linux. For years the usual tools were os.path and plain strings. Today the cleaner option is the built-in pathlib module and its Path objects.
- Read more about Python pathlib Tutorial: Paths, Read/Write, glob, mkdir and Practical File Scripts
- Log in or register to post comments
- 13 views