We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
index_files(path::S3Path)
It is because isfile being run on each path returned by collect(walkpath) on this line.
isfile
collect(walkpath)
One possible workaround would be to filter out paths which end in /. For a 3000 file path the difference is 0.8s vs 60s using isfile.
/
path
The text was updated successfully, but these errors were encountered:
i wonder if we can trust the isdirectory::Bool field to tell us when an S3Path is not pointing to a file? then we could maybe have something like
isdirectory::Bool
function index_files(dir::S3Path) isdir(dir) || throw(ArgumentError(dir, "Need an existing directory.")) map(Iterators.filter(p -> !p.isdirectory, walkpath(dir))) do path return IndexEntry(path) end end
Sorry, something went wrong.
No branches or pull requests
It is because
isfile
being run on each path returned bycollect(walkpath)
on this line.One possible workaround would be to filter out paths which end in
/
. For a 3000 filepath
the difference is 0.8s vs 60s usingisfile
.The text was updated successfully, but these errors were encountered: