Check EISDIR for Mac when performing mkdir
This commit is contained in:
@ -13,7 +13,7 @@ export const setup = (dataDirectory: string): void => {
|
||||
try {
|
||||
fs.mkdirSync(currentDir);
|
||||
} catch (ex) {
|
||||
if (ex.code !== "EEXIST") {
|
||||
if (ex.code !== "EEXIST" && ex.code !== "EISDIR") {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ export class SharedProcess {
|
||||
try {
|
||||
fs.mkdirSync(dir);
|
||||
} catch (ex) {
|
||||
if (ex.code !== "EEXIST") {
|
||||
if (ex.code !== "EEXIST" && ex.code !== "EISDIR") {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user