From 97c8cb921ff10f6aef63cdd6b70be54b525e08f8 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 027539e849..c36e79b89b 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 { @@ -280,8 +281,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)