-
Notifications
You must be signed in to change notification settings - Fork 193
Globbing with glob vs. pathlib #16
Copy link
Copy link
Open
Description
It might be worth mentioning that glob.glob and pathlib.Path.glob work slightly differently. glob.glob treats dotfiles specially, while pathlib.Path.glob uses ** only to match directories, not files. It's easy to use pathlib.Path.glob without reading the docs closely enough to realize the differences from glob.glob and bash globstar behavior, and thus construct a pattern that doesn't match what you want.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels