From 3e6ea6284178df0be4982d9775f47b47b14c6139 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Wed, 29 Apr 2020 22:00:31 +0200 Subject: BREAKING: Include limited metadata in 'DirEntry' objects (#4941) This change is to prevent needed a separate stat syscall for each file when using readdir. For consistency, this PR also modifies std's `WalkEntry` interface to extend `DirEntry` with an additional `path` field. --- cli/js/ops/fs/stat.ts | 2 -- 1 file changed, 2 deletions(-) (limited to 'cli/js/ops/fs/stat.ts') diff --git a/cli/js/ops/fs/stat.ts b/cli/js/ops/fs/stat.ts index c3563a8c4..e8fd28218 100644 --- a/cli/js/ops/fs/stat.ts +++ b/cli/js/ops/fs/stat.ts @@ -29,8 +29,6 @@ export interface StatResponse { mtime: number | null; atime: number | null; birthtime: number | null; - // Null for stat(), but exists for readdir(). - name: string | null; // Unix only members dev: number; ino: number; -- cgit v1.2.3