cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [24/51] [abbrv] git commit: Update wp7_parser.js
Date Wed, 27 Nov 2013 22:27:23 GMT
Update wp7_parser.js

Fails to add windows platform, files with 0 size are not directories.

Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/257799ae
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/257799ae
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/257799ae

Branch: refs/heads/fireos
Commit: 257799ae04525213c777e15455d9a3f0ff3fbdcd
Parents: 84aeb98
Author: junaidrsd <junaid@sc5.fi>
Authored: Wed Nov 20 16:46:43 2013 +0200
Committer: junaidrsd <junaid@sc5.fi>
Committed: Wed Nov 20 16:46:43 2013 +0200

----------------------------------------------------------------------
 src/metadata/wp7_parser.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/257799ae/src/metadata/wp7_parser.js
----------------------------------------------------------------------
diff --git a/src/metadata/wp7_parser.js b/src/metadata/wp7_parser.js
index 4cfb63d..8c12e2a 100644
--- a/src/metadata/wp7_parser.js
+++ b/src/metadata/wp7_parser.js
@@ -222,7 +222,7 @@ module.exports.prototype = {
         for(item in folder_dir) {
             var stat = fs.statSync(path.join(dir, folder_dir[item]));
             // means its a folder?
-            if(stat.size == 0) {
+            if(stat.isDirectory()) {
                 var sub_dir = this.folder_contents(path.join(name, folder_dir[item]), path.join(dir,
folder_dir[item]));
                 //Add all subfolder item paths
                 for(sub_item in sub_dir) {


Mime
View raw message