pathlib: path properties
The goal of this series of videos is to demonstrate how to deal with files, paths and folders from python programmatically. We'll mainly discuss the python pathlib module.
There's a few path properties discussed here.
import pathlib p = pathlib.Path("settings", "config.json") p.parts p.is_dir() p.is_file() p.resolve() p.samefile(p) p.suffix
Without peeking in the video, can you recall what they do?
Feedback? See an issue? Something unclear? Feel free to mention it here.
If you want to be kept up to date, consider signing up for the newsletter.