@dnax/core 0.45.5 → 0.45.6
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/package.json +1 -1
- package/utils/index.ts +1 -1
package/package.json
CHANGED
package/utils/index.ts
CHANGED
|
@@ -400,7 +400,7 @@ const file = {
|
|
|
400
400
|
}> => {
|
|
401
401
|
return new Promise(async (resolve, reject) => {
|
|
402
402
|
try {
|
|
403
|
-
if (
|
|
403
|
+
if ((await !fs.pathExists(des)) && !options?.force) {
|
|
404
404
|
reject("Already exist in destination");
|
|
405
405
|
}
|
|
406
406
|
await fs.copyFile(src, des);
|