I've written the folloeing function but it is ~50% slower than R's list.files(x, recursive = TRUE). Maybe there is also a way to make it faster.
function list_files(x)
v = String[]
for (root, dirs, files) in walkdir(x)
for file in files
file = joinpath(root, file)
push!(v, file)
end
end
v
end