You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ti...@apache.org on 2012/06/07 22:40:44 UTC

[12/48] js commit: fixed moving a file replacing another file

fixed moving a file replacing another file


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/3ae429bd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/3ae429bd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/3ae429bd

Branch: refs/heads/master
Commit: 3ae429bdbc3c73a6a7d3572677678585d4a24e4d
Parents: 39b67cf
Author: Tim Kim <ti...@nitobi.com>
Authored: Thu May 31 18:24:28 2012 -0700
Committer: Tim Kim <ti...@nitobi.com>
Committed: Thu Jun 7 13:40:24 2012 -0700

----------------------------------------------------------------------
 lib/playbook/plugin/playbook/Entry.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/3ae429bd/lib/playbook/plugin/playbook/Entry.js
----------------------------------------------------------------------
diff --git a/lib/playbook/plugin/playbook/Entry.js b/lib/playbook/plugin/playbook/Entry.js
index c520553..b30af48 100644
--- a/lib/playbook/plugin/playbook/Entry.js
+++ b/lib/playbook/plugin/playbook/Entry.js
@@ -99,6 +99,7 @@ module.exports = {
                 if(blackberry.io.file.exists(dstPath)){
                     blackberry.io.file.deleteFile(dstPath);
                     blackberry.io.file.copy(srcPath,dstPath);
+                    blackberry.io.file.deleteFile(srcPath);
 
                     theEntry.fullPath = dstPath;
                     theEntry.name = name;