add screesnshots date wise for debugging
parent
4afcaff2cf
commit
0d22675923
|
@ -12,7 +12,14 @@ const utils = require("./utils");
|
||||||
(async function () {
|
(async function () {
|
||||||
console.log(`===========< STARTED ${luxon.DateTime.now()} >=========`);
|
console.log(`===========< STARTED ${luxon.DateTime.now()} >=========`);
|
||||||
|
|
||||||
const screenshotDirectory = path.join(__dirname, "screenshots");
|
|
||||||
|
const syncDate = luxon.DateTime.now().toFormat("yyyy-MM-dd");
|
||||||
|
|
||||||
|
const screenshotDirectory = path.join(__dirname, `screenshots/${syncDate}`);
|
||||||
|
|
||||||
|
if ( !fs.existsSync(screenshotDirectory) ) {
|
||||||
|
fs.mkdirSync( screenshotDirectory, { recursive: true });
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* loading config data
|
* loading config data
|
||||||
|
|
Loading…
Reference in New Issue