I tried to do a mapsubtrees which after I should be able to do reducevalues but it is no allowing me. See MWE below
mkdir("plsdel")
mkdir("plsdel/folder_a")
mkdir("plsdel/folder_b")
using DataFrames, FileTrees, CSV
a = DataFrame(a = 1:100)
b = DataFrame(a = 1:100)
CSV.write("plsdel/folder_a/a.csv", a)
CSV.write("plsdel/folder_b/a.csv", b)
ft = FileTree("plsdel")
ft2 = mapsubtrees(ft, r"folder") do file
f = file |> FileTrees.path |> string
CSV.read(joinpath("plsdel", f, "a.csv"))
end
reducevalues(vcat, ft2)
I tried to do a
mapsubtrees
which after I should be able to doreducevalues
but it is no allowing me. See MWE below