-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
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
[FEAT] Add local native filesystem globbing. #1449
Conversation
src/daft-io/src/local.rs
Outdated
path: path.to_string_lossy(), | ||
const LOCAL_PROTOCOL: &str = "file://"; | ||
let path = uri.strip_prefix(LOCAL_PROTOCOL).unwrap_or(uri); | ||
let meta = tokio::fs::metadata(path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to top-level tokio::fs::metadata()
which (1) will follow symlinks, and (2) I believe has less overhead than opening + fetching the metadata off of the file object.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1449 +/- ##
==========================================
+ Coverage 74.61% 74.62% +0.01%
==========================================
Files 60 60
Lines 6034 6034
==========================================
+ Hits 4502 4503 +1
+ Misses 1532 1531 -1 |
@clarkzinzow Can we also add some python tests and ensure we have the same behavior as s3 and gcs? |
This PR adds an
ls
implementation for the native local filesystem.Closes #1441