Permalink
Browse files

fixes File Api tests

  • Loading branch information...
1 parent 2b144d8 commit 5da07d678b4c3967539e49cbae7874c94c610140 @sgrebnov sgrebnov committed Oct 15, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 templates/standalone/cordovalib/Commands/File.cs
@@ -1125,21 +1125,21 @@ private void removeDirRecursively(string fullPath)
{
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);

0 comments on commit 5da07d6

Please sign in to comment.