fix: directory creation
This commit is contained in:
parent
314c19a053
commit
a22ab96b01
|
@ -52,7 +52,7 @@ export async function createReplServer(flecks) {
|
|||
});
|
||||
});
|
||||
try {
|
||||
await mkdir(join(tmpdir(), 'flecks', id, 'repl'));
|
||||
await mkdir(join(tmpdir(), 'flecks', id, 'repl'), {recursive: true});
|
||||
}
|
||||
catch (error) {
|
||||
if ('EEXIST' !== error.code) {
|
||||
|
|
|
@ -11,7 +11,7 @@ const {version} = require('../package.json');
|
|||
// eslint-disable-next-line no-console
|
||||
console.log(`flecks server v${version}`);
|
||||
try {
|
||||
await mkdir(join(tmpdir(), 'flecks'));
|
||||
await mkdir(join(tmpdir(), 'flecks'), {recursive: true});
|
||||
}
|
||||
catch (error) {
|
||||
if ('EEXIST' !== error.code) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user