Added fully archive support!

This commit is contained in:
Daniel
2022-06-02 23:00:51 +04:30
parent b18ef2b905
commit 1d23855eac
10 changed files with 135 additions and 80 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ const fetch = require('cross-fetch');
const config = require('../../src/config.js');
const fs = require('fs');
const screenshotDirectory = config.API.STORAGE_LOCATION + '/Webmarker/screenshot\'s/';
const pdfDirectory = config.API.STORAGE_LOCATION + '/Webmarker/pdf\'s/';
const screenshotDirectory = config.API.STORAGE_LOCATION + '/LinkWarden/screenshot\'s/';
const pdfDirectory = config.API.STORAGE_LOCATION + '/LinkWarden/pdf\'s/';
if (!fs.existsSync(screenshotDirectory)){
fs.mkdirSync(screenshotDirectory, { recursive: true });