zet-lib 1.4.14 → 1.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/zRoute.js +3 -1
- package/package.json +1 -1
package/lib/zRoute.js
CHANGED
|
@@ -4846,7 +4846,9 @@ zRoute.updateSQL = async (req, res, table, data, whereData) => {
|
|
|
4846
4846
|
if (!Util.fileExist(path_dest + item)) {
|
|
4847
4847
|
let newItem = time + item;
|
|
4848
4848
|
newArr.push(newItem);
|
|
4849
|
-
|
|
4849
|
+
if (Util.fileExist(path_src + item)) {
|
|
4850
|
+
fs.rename(path_src + item, path_dest + newItem);
|
|
4851
|
+
}
|
|
4850
4852
|
} else {
|
|
4851
4853
|
newArr.push(item);
|
|
4852
4854
|
}
|