mirror of
https://github.com/coder/code-server.git
synced 2025-09-27 10:05:03 +08:00
Check EISDIR for Mac when performing mkdir
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user