A Deep Dive Into Pathlib And The Magic Behind It

ArjanCodes • September 23, 2022
Video Thumbnail

About

No channel description available.

Video Description

💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide. If you’re not yet using pathlib for dealing with files and directories, you’re missing out. This video takes a close look at the pathlib library in Python and explains some of the magic that goes into it, as well as how you can use it in your own code. The code I worked on in this video is available here: https://github.com/ArjanCodes/2022-pathlib 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses/ 🔖 Chapters: 0:00 Intro 0:55 Why not simply use strings 1:10 Issues with strings 2:20 Basic usage of pathlib 4:02 Back slashes and forward slashes 5:13 Reading file from a path 6:03 Resolving paths 6:41 Useful path properties 8:15 Checking whether path is a file or a directory 8:43 Creating and deleting files and directories 10:43 Reading paths from configuration files 11:13 Pathlib and Pydantic 12:31 Operator overloading in Python 16:34 Outro #arjancodes #softwaredesign #python

No Recommendations Found

No products were found for the selected channel.