Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape path before globbing #61

Merged
merged 1 commit into from
Apr 4, 2019
Merged

Escape path before globbing #61

merged 1 commit into from
Apr 4, 2019

Conversation

jm-duke
Copy link
Contributor

@jm-duke jm-duke commented Apr 3, 2019

If file names include e.g. '[' or ']', fnmatch, which is used by glob,
might throw a bad character range exception in re.

Escaping the path with glob.escape() before globbing prevents this
issue.

If file names include e.g. '[' or ']', fnmatch, which is used by glob,
might throw a bad character range exception in re.

Escaping the path with glob.escape() before globbing prevents this
issue.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) to 30.296% when pulling cd11342 on atduke:master into 7dd1d01 on amietn:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) to 30.296% when pulling cd11342 on atduke:master into 7dd1d01 on amietn:master.

@amietn amietn merged commit 32b5ed6 into amietn:master Apr 4, 2019
@amietn
Copy link
Owner

amietn commented Apr 4, 2019

Thank you! Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants