Hot: Pathlib, Not: String Paths
30 Minute Talk
Sunday at 12:30 pm in Cattleya
Have you seen pathlib? If not, once I show you, you will never go back to string paths and os.path ever again! pathlib turns paths into path objects, which have attributes and methods that cover a number of operations. In this talk, we will:
- Talk about how to create
Pathobjects, and how this differs on Windows vs Mac/Linux - Talk about the many properties of pure paths
- Talk about folder operations from
Pathobjects, such as creating directory structures and recursive globbing. - Talk about file operations, made simpler with
Pathobjects, such as reading contents, getting properties like file size, and deleting.
Stop messing with string paths and get with pathlib!
