filemanip
filemanip copied to clipboard
GlobPattern: windows path escaping broken?
Hi, seems nit quite right for me.
> "a\\b" ~~ "a\\*"
False
but
> "a/b" ~~ "a/*"
True
You should escape \
in glob patterns.
> "a\\b" ~~ "a\\\\*"
True
you are right but what about that
>"a/b" ~~ "*/b"
True
>"a\\b" ~~ "*\\\\b"
False
>"a\\b" ~~ "*\\b"
False
at the end i would like to have that
find always (filePath ~~? "./d*/*/*.xml") "."
have the same or close behavior as linux/python glob
ls "./d*/*/*.xml"
glob("./d*/*/*.xml")