diff --git a/src/main.cpp b/src/main.cpp index b5597c6..8cc182b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -59,8 +59,10 @@ int main(int argc, char* argv[]) { if ((typeof process !== 'undefined') && (process.release.name === 'node')) { const sub_directory = UTF8ToString($0); if (!FS.isMountpoint(sub_directory)) { - FS.mkdir(sub_directory); - FS.mount(NODEFS, {root: sub_directory}, sub_directory); + try { + FS.mkdir(sub_directory); + FS.mount(NODEFS, {root: sub_directory}, sub_directory); + } catch (exception) {} }; } }, sub_directory.c_str());