This commit is contained in:
Harvey committed 2022-02-11 11:53:57 +08:00
1 parent d9f23c40c6
commit d9cad3ef85
7 files changed
+17 -13

No files matched your search

+9 -5
View File
@@ -9,11 +9,15 @@ module.exports = (opts = {}) => ({
}
if (opts.from && opts.to) {
cpy(opts.from, opts.to).then(() => {
logger.success(`${opts.from} successfully copied to ${opts.to}`);
}).catch(() => {
logger.fatal('File copy failed!');
});
setTimeout(() => {
cpy(opts.from, opts.to)
.then(() => {
logger.success(`${opts.from} successfully copied to ${opts.to}`);
})
.catch(() => {
logger.fatal('File copy failed!');
});
}, 200);
}
},
});