|
From: <exo...@us...> - 2006-09-07 05:36:36
|
Revision: 2537
http://svn.sourceforge.net/ccnet/?rev=2537&view=rev
Author: exortech
Date: 2006-09-06 22:36:32 -0700 (Wed, 06 Sep 2006)
Log Message:
-----------
CCNET-740: support recursive deletes on cleancopy
Modified Paths:
--------------
trunk/project/core/util/IoService.cs
trunk/project/core/util/SystemIoFileSystem.cs
Modified: trunk/project/core/util/IoService.cs
===================================================================
--- trunk/project/core/util/IoService.cs 2006-09-07 05:35:13 UTC (rev 2536)
+++ trunk/project/core/util/IoService.cs 2006-09-07 05:36:32 UTC (rev 2537)
@@ -36,7 +36,7 @@
{
EmptyDirectoryIncludingReadOnlyObjects(directoryPath);
File.SetAttributes(directoryPath, FileAttributes.Normal);
- Directory.Delete(directoryPath);
+ Directory.Delete(directoryPath, true);
}
}
Modified: trunk/project/core/util/SystemIoFileSystem.cs
===================================================================
--- trunk/project/core/util/SystemIoFileSystem.cs 2006-09-07 05:35:13 UTC (rev 2536)
+++ trunk/project/core/util/SystemIoFileSystem.cs 2006-09-07 05:36:32 UTC (rev 2537)
@@ -74,17 +74,5 @@
{
return File.Exists(file);
}
-
-// private TextReader CreateTextReader(string path)
-// {
-// try
-// {
-// return new StreamReader(path);
-// }
-// catch (IOException ex)
-// {
-// throw new CruiseControlException(string.Format("Unable to read the specified state file: {0}. The path may be invalid.", path), ex);
-// }
-// }
}
}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|