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

glob and Filesystem.normpath #46

Open
mzaffalon opened this issue Dec 26, 2024 · 0 comments
Open

glob and Filesystem.normpath #46

mzaffalon opened this issue Dec 26, 2024 · 0 comments

Comments

@mzaffalon
Copy link

mzaffalon commented Dec 26, 2024

glob and normpath do not seem to play well together

julia> d = normpath("tmp/Tetris")
"tmp\\Tetris"

julia> glob(Glob.GlobMatch("Tetris-mossr/*/*"), d)
1-element Vector{String}:
 "tmp\\Tetris\\Tetris-mossr\\img\\tetris.png"

julia> glob(Glob.GlobMatch(normpath("Tetris-mossr/*/*")), d)
String[]

As a workaround I do replace(path, raw"\\" => "/") on both the directory and the pattern.

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

No branches or pull requests

1 participant