From 397f023a5e0d1d3836915dfe2ddcb03ba429d722 Mon Sep 17 00:00:00 2001 From: Arnau Orriols Date: Mon, 15 Jul 2024 01:23:48 +0200 Subject: [PATCH] chore(ext/fs): implement `InMemoryFs::realpath_sync` --- ext/fs/in_memory_fs.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/fs/in_memory_fs.rs b/ext/fs/in_memory_fs.rs index 153327ff64..bed6055a22 100644 --- a/ext/fs/in_memory_fs.rs +++ b/ext/fs/in_memory_fs.rs @@ -24,6 +24,7 @@ use crate::interface::FsDirEntry; use crate::interface::FsFileType; use crate::FileSystem; use crate::OpenOptions; +use crate::RealFs; #[derive(Debug)] enum PathEntry { @@ -262,8 +263,8 @@ impl FileSystem for InMemoryFs { self.lstat_sync(&path) } - fn realpath_sync(&self, _path: &Path) -> FsResult { - Err(FsError::NotSupported) + fn realpath_sync(&self, path: &Path) -> FsResult { + RealFs.realpath_sync(path) } async fn realpath_async(&self, path: PathBuf) -> FsResult { self.realpath_sync(&path)