`pathlib` is a part of the standard library that helps you deal with file paths. In this video, we explore the library with examples. We also talk about the different `Path` classes that are available to us, and we talk about the relationships between the different classes in the library. And lastly, we talk about some of the caveats of using the library.
00:00 - Intro
00:15 - The `Path` Object
01:28 - Understanding `Path` objects and their inheritance
02:23 - Utility methods and properties on the `Path` object
03:32 - FileExistsError
03:45 - Chaining methods on the `Path` object
04:34 - Finding duplicate files
05:26 - Iterating over directories
06:09 - Matching filenames
06:35 - Deleting files
07:19 - Using Path objects in other libraries
07:31 - Opening files using Path's open method
Links:
- Download PyCharm: https://jb.gg/u8syo9