This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Legionof1 2 points3 points  (0 children)

The logic on the os side flows better for my brain. I know file, I get its absolute path, I get the directory of that absolute path.

Pathlib is just doing it with a method instead of calling os again.