Archived
1
0

Check EISDIR for Mac when performing mkdir

This commit is contained in:
Asher
2019-02-26 18:23:33 -06:00
parent d556e110cb
commit 71b7bbf99a
5 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ export class Server {
try {
await promisify(mkdir)(dir);
} catch (error) {
if (error.code !== "EEXIST") {
if (error.code !== "EEXIST" && error.code !== "EISDIR") {
throw error;
}
}