mirror of
https://github.com/pysunday/rs-reverse.git
synced 2025-04-12 03:46:56 +08:00
fix: 拷贝目录报错修复
This commit is contained in:
parent
2d31257b4e
commit
b8702c0eee
@ -93,7 +93,9 @@ function secondStep(ts, immucfg, mate) {
|
||||
}
|
||||
|
||||
module.exports = async function (ts, immucfg, mate) {
|
||||
fse.moveSync(paths.outputResolve('makecode-high'), paths.outputResolve('makecode-high-old'), { overwrite: true });
|
||||
if (fs.existsSync(paths.outputResolve('makecode-high'))) {
|
||||
fse.moveSync(paths.outputResolve('makecode-high'), paths.outputResolve('makecode-high-old'), { overwrite: true });
|
||||
}
|
||||
const startTime = new Date().getTime();
|
||||
const [files, cookieStr] = firstStep(ts, immucfg, mate);
|
||||
files.unshift('\n第1次请求:\n');
|
||||
|
Loading…
x
Reference in New Issue
Block a user