Skip to content

Commit

Permalink
fix: pass open flags to getChildEntry in statAt (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun authored Sep 5, 2024
1 parent 046f337 commit 33e6192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/preview2-shim/lib/browser/filesystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class Descriptor {
}

statAt(_pathFlags, path) {
const entry = getChildEntry(this.#entry, path);
const entry = getChildEntry(this.#entry, path, { create: false, directory: false });
let type = 'unknown', size = BigInt(0);
if (entry.source) {
type = 'regular-file';
Expand Down

0 comments on commit 33e6192

Please sign in to comment.