logo

... pathlib: path properties



Notes

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.