This commit is contained in:
fanxb 2022-12-17 18:59:43 +08:00
parent ecca3a4ee6
commit 977da05608

View File

@ -27,6 +27,9 @@ class RenamerService {
let old = fileList[i];
let oldPath = path.join(fileList[i].path, fileList[i].name);
let newPath = path.join(changedFileList[i].path, changedFileList[i].name);
if (oldPath === newPath) {
continue;
}
if ((await fs.pathExists(newPath))) {
throw new Error("此路径已存在:" + newPath);
}