add empty output folder structure to source
This commit is contained in:
Родитель
24ef0a9345
Коммит
47aa8f6b4f
|
@ -6,4 +6,3 @@
|
|||
/.vs/
|
||||
notcheckedin/
|
||||
db.json
|
||||
output
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
||||
!assets
|
|
@ -0,0 +1,5 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
||||
!output
|
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
|
@ -0,0 +1,5 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
||||
!output
|
|
@ -51,6 +51,7 @@ function exportXlsx(allDocs) {
|
|||
function writeResultDir(dir, result, optional) {
|
||||
const fs = require('fs');
|
||||
|
||||
/*
|
||||
try {
|
||||
if (!fs.existsSync(dir)){
|
||||
fs.mkdirSync(dir);
|
||||
|
@ -60,6 +61,7 @@ function writeResultDir(dir, result, optional) {
|
|||
if (!optional)
|
||||
throw e;
|
||||
}
|
||||
*/
|
||||
|
||||
let data = JSON.stringify(result, null, 4);
|
||||
fs.writeFileSync(dir + outputFile, data);
|
||||
|
|
Загрузка…
Ссылка в новой задаче