shashi / FileTrees.jl

Parallel computing with a tree of files metaphor
http://shashi.biz/FileTrees.jl
Other
88 stars 6 forks source link

Missing root when accessing by regex #39

Closed DrChainsaw closed 3 years ago

DrChainsaw commented 3 years ago

It seems like Files no longer have their absolute path intact after accessing them with a regex:

julia> ft = maketree("a" => ["b" => ["c" => ["d"]]]);

julia> ft |> files |> first # Expected answer
File(a\b\c\d)

julia> ft[r".*/c/d"] |> files |> first # Root is dropped :(
File(b\c\d)

julia> ft[glob"*/c/d"] |> files |> first # No problem!
File(a\b\c\d)

julia> ft["b/c/d"] # No problem!
File(a\b\c\d)