You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2012/11/01 00:34:18 UTC

[11/12] wp7 commit: fixes File Api tests

fixes File Api tests


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/commit/5da07d67
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/tree/5da07d67
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/diff/5da07d67

Branch: refs/heads/master
Commit: 5da07d678b4c3967539e49cbae7874c94c610140
Parents: 2b144d8
Author: sgrebnov <se...@gmail.com>
Authored: Tue Oct 16 01:03:48 2012 +0400
Committer: sgrebnov <se...@gmail.com>
Committed: Tue Oct 16 01:03:48 2012 +0400

----------------------------------------------------------------------
 templates/standalone/cordovalib/Commands/File.cs |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/5da07d67/templates/standalone/cordovalib/Commands/File.cs
----------------------------------------------------------------------
diff --git a/templates/standalone/cordovalib/Commands/File.cs b/templates/standalone/cordovalib/Commands/File.cs
index 579dd6e..71b3185 100644
--- a/templates/standalone/cordovalib/Commands/File.cs
+++ b/templates/standalone/cordovalib/Commands/File.cs
@@ -1125,21 +1125,21 @@ namespace WP7CordovaClassLib.Cordova.Commands
                 {
                     if (isoFile.DirectoryExists(fullPath))
                     {
-                        string path = File.AddSlashToDirectory(fullPath);
-                        string[] files = isoFile.GetFileNames(path + "*");
+                        string tempPath = File.AddSlashToDirectory(fullPath);
+                        string[] files = isoFile.GetFileNames(tempPath + "*");
                         if (files.Length > 0)
                         {
                             foreach (string file in files)
                             {
-                                isoFile.DeleteFile(path + file);
+                                isoFile.DeleteFile(tempPath + file);
                             }
                         }
-                        string[] dirs = isoFile.GetDirectoryNames(path + "*");
+                        string[] dirs = isoFile.GetDirectoryNames(tempPath + "*");
                         if (dirs.Length > 0)
                         {
                             foreach (string dir in dirs)
                             {
-                                removeDirRecursively(path + dir + "/");
+                                removeDirRecursively(tempPath + dir);
                             }
                         }
                         isoFile.DeleteDirectory(fullPath);