| Server IP : 145.239.37.162 / Your IP : 216.73.217.71 Web Server : Apache System : Linux webm003.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaa ( 38250) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaa/www_old/wp-content/plugins/cookie-law-info/lite/admin/ |
Upload File : |
const fs = require('fs-extra')
const path = require("path");
const source = path.resolve(
__dirname,
'../..'
);
const target = path.resolve(
__dirname,
'../../../build/cookie-law-info'
);
async function build() {
await copyFiles();
await deleteFiles();
}
async function copyFiles() {
try {
await fs.copy(source, target);
} catch (err) {
console.error(err)
}
}
async function deleteFiles() {
try {
await fs.remove(`${target}/lite/admin/node_modules`)
await fs.remove(`${target}/lite/admin/src`)
await fs.remove(`${target}/.git`)
await fs.remove(`${target}/.gitignore`)
console.log('success!')
} catch (err) {
console.error(err)
}
}
build();