if (!FS.existsSync(_path)) {
FS.mkdirSync(_path);
}
it's does't work properly because it's possible to catch state when FS.existsSync passed, but before FS.mkdirSync directory was created (especially when we run multiply threads with Borschik)
so I suggest add try/catch wrapper around FS.mkdirSync and ignore EEXIST exeption
There is a code in
lib/freeze.js
:"it's does't work properly because it's possible to catch state when
FS.existsSync
passed, but beforeFS.mkdirSync
directory was created (especially when we run multiply threads with Borschik)so I suggest add
try/catch
wrapper aroundFS.mkdirSync
and ignoreEEXIST
exeption