Skip to content

Commit

Permalink
fix: handle permission check where the parent directory doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
hperrin committed Sep 8, 2023
1 parent 0110e43 commit 6d2d74d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/adapter-file-system/src/Adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export default class Adapter implements AdapterInterface {
}
}
} catch (e: any) {
if (exists || i < parts.length) {
if (exists || (i < parts.length && e.code !== 'ENOENT')) {
return false;
}
}
Expand Down

0 comments on commit 6d2d74d

Please sign in to comment.