diff options
Diffstat (limited to 'ext/fs')
-rw-r--r-- | ext/fs/interface.rs | 2 | ||||
-rw-r--r-- | ext/fs/std_fs.rs | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/ext/fs/interface.rs b/ext/fs/interface.rs index 6036f8228..cb6fc4f63 100644 --- a/ext/fs/interface.rs +++ b/ext/fs/interface.rs @@ -69,10 +69,10 @@ pub enum FsFileType { Junction, } +/// WARNING: This is part of the public JS Deno API. #[derive(Serialize)] #[serde(rename_all = "camelCase")] pub struct FsDirEntry { - pub parent_path: String, pub name: String, pub is_file: bool, pub is_directory: bool, diff --git a/ext/fs/std_fs.rs b/ext/fs/std_fs.rs index 79f66cc4b..c501b8928 100644 --- a/ext/fs/std_fs.rs +++ b/ext/fs/std_fs.rs @@ -814,7 +814,6 @@ fn read_dir(path: &Path) -> FsResult<Vec<FsDirEntry>> { }; } Some(FsDirEntry { - parent_path: path.to_string_lossy().to_string(), name, is_file: method_or_false!(is_file), is_directory: method_or_false!(is_dir), |