Skip to content

Allow user to configure glob.globmatch() to disable forced wcmatch.PATHNAME globbing #202

Answered by facelessuser
aldenc98 asked this question in Q&A
Discussion options

You must be logged in to vote

So, let me ask, are you wanting to match Unix style paths on Windows? If so, maybe this helps: https://facelessuser.github.io/wcmatch/glob/#forceunix.

You do not want to disable disable pathnames, that is what allows you to do paths vs just an fnmatch filename.

Wcmatch adapts itself to the system you are working on, and if Windows, it will use Windows logic for paths. If you are using something that does not touch the filesystem though, like globmatch, you force a Unix or Windows logic and match arbitrary paths.

EDIT: fixed typos

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by facelessuser
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@facelessuser
Comment options

# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #201 on March 28, 2023 00:45.