Skip to content

Commit

Permalink
fix: correct error on mkcol request on an existing non-collection res…
Browse files Browse the repository at this point in the history
…ource
  • Loading branch information
hperrin committed Aug 8, 2022
1 parent 6a46088 commit 1654602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FileSystemAdapter/Resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ export default class Resource implements ResourceInterface {
try {
meta = JSON.parse((await fsp.readFile(filepath)).toString());
} catch (e: any) {
if (e.code !== 'ENOENT') {
if (e.code !== 'ENOENT' && e.code !== 'ENOTDIR') {
throw e;
}
}
Expand Down

0 comments on commit 1654602

Please sign in to comment.