incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tim...@apache.org
Subject [12/48] js commit: fixed moving a file replacing another file
Date Thu, 07 Jun 2012 20:40:44 GMT
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 <tim.kim@nitobi.com>
Authored: Thu May 31 18:24:28 2012 -0700
Committer: Tim Kim <tim.kim@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;


Mime
View raw message