mirror of
https://github.com/denoland/deno.git
synced 2025-02-01 12:16:11 -05:00
chore(ext/fs): implement InMemoryFs::realpath_sync
This commit is contained in:
parent
8754a01d43
commit
97c8cb921f
1 changed files with 3 additions and 2 deletions
|
@ -24,6 +24,7 @@ use crate::interface::FsDirEntry;
|
||||||
use crate::interface::FsFileType;
|
use crate::interface::FsFileType;
|
||||||
use crate::FileSystem;
|
use crate::FileSystem;
|
||||||
use crate::OpenOptions;
|
use crate::OpenOptions;
|
||||||
|
use crate::RealFs;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
enum PathEntry {
|
enum PathEntry {
|
||||||
|
@ -280,8 +281,8 @@ impl FileSystem for InMemoryFs {
|
||||||
self.lstat_sync(&path)
|
self.lstat_sync(&path)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn realpath_sync(&self, _path: &Path) -> FsResult<PathBuf> {
|
fn realpath_sync(&self, path: &Path) -> FsResult<PathBuf> {
|
||||||
Err(FsError::NotSupported)
|
RealFs.realpath_sync(path)
|
||||||
}
|
}
|
||||||
async fn realpath_async(&self, path: PathBuf) -> FsResult<PathBuf> {
|
async fn realpath_async(&self, path: PathBuf) -> FsResult<PathBuf> {
|
||||||
self.realpath_sync(&path)
|
self.realpath_sync(&path)
|
||||||
|
|
Loading…
Add table
Reference in a new issue