mirror of
https://github.com/denoland/deno.git
synced 2024-11-23 15:16:54 -05:00
chore(ext/fs): implement InMemoryFs::realpath_sync
This commit is contained in:
parent
892e7c20ac
commit
397f023a5e
1 changed files with 3 additions and 2 deletions
|
@ -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<PathBuf> {
|
||||
Err(FsError::NotSupported)
|
||||
fn realpath_sync(&self, path: &Path) -> FsResult<PathBuf> {
|
||||
RealFs.realpath_sync(path)
|
||||
}
|
||||
async fn realpath_async(&self, path: PathBuf) -> FsResult<PathBuf> {
|
||||
self.realpath_sync(&path)
|
||||
|
|
Loading…
Reference in a new issue