Skip to content

Commit

Permalink
work around hermit not supporting File::metadata (hermit-os/hermit-rs…
Browse files Browse the repository at this point in the history
…#641)
  • Loading branch information
m-mueller678 committed Dec 11, 2024
1 parent dc45d7d commit 3af1f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion object_store/src/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ pub(crate) fn read_range(file: &mut File, path: &PathBuf, range: Range<usize>) -
}

fn open_file(path: &PathBuf) -> Result<(File, Metadata)> {
let ret = match File::open(path).and_then(|f| Ok((f.metadata()?, f))) {
let ret = match File::open(path).and_then(|f| Ok((metadata(path)?, f))) {
Err(e) => Err(match e.kind() {
ErrorKind::NotFound => Error::NotFound {
path: path.clone(),
Expand Down

0 comments on commit 3af1f90

Please sign in to comment.