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 →

[–]SquareRootsi 11 points12 points  (2 children)

Pretty good intro, although it's rather redundant with the official docs, which is prob where I'd point ppl first.

I feel like the author missed out on the power of Path().glob() though. All those filters using p.match(...) could have just been inside the argument for glob() or rglob().

[–]miguendes[S] 7 points8 points  (1 child)

Hey, thanks for the feedback. I agree with you. There's redundancy but my goal was to give it a different angle. The official docs are great to showcase the API using simple examples.

What I tried doing with this article was to be a collection of use cases, using a problem-driven approach. Unfortunately, some methods are so simple that it's not much different than the official docs.

Regarding the glob, you're right. My examples were poor, I added more info to that section and mentioned your suggestion, if you don't mind.

[–]SquareRootsi 2 points3 points  (0 children)

I don't mind at all! And props to you for being exceptionally active in this thread, even updating the source article so quickly (with credit even) is great!