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?
pathlib: path properties
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?