Enable SA data to be stored in user documents folder

This commit is contained in:
NAmorim committed 2021-10-21 18:44:42 +01:00
1 parent 6680d4495c
commit 7d7be12a48
3 files changed
+9 -12

No files matched your search

+2 -2
View File
@@ -598,7 +598,7 @@ exports.newHttpInterface = function newHttpInterface() {
function createNewDir(path) {
try {
fs.mkdirSync(path)
fs.mkdirSync(path, {recursive: true})
} catch (err) {
if (err.message.indexOf('file already exists') < 0) {
throw (err)
@@ -1805,7 +1805,7 @@ exports.newHttpInterface = function newHttpInterface() {
/* Create Dir if it does not exist */
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir);
fs.mkdirSync(dir, {recursive: true});
}
fs.writeFile(filePath, fileContent, onFileWritten)