Changeset 1638
- Timestamp:
- 1/22/2010 5:27:54 AM (3 years ago)
- Location:
- trunk/eraser6
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
Eraser.Manager/DirectExecutor.cs (modified) (2 diffs)
-
Eraser.Util/StreamInfo.cs (modified) (1 diff)
-
Eraser.Util/VolumeInfo.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser6
- Property svn:mergeinfo changed
/branches/eraser6/6.0 merged: 1637
- Property svn:mergeinfo changed
-
trunk/eraser6/Eraser.Manager/DirectExecutor.cs
r1611 r1638 568 568 new ProgressChangedEventArgs(step, 569 569 new TaskProgressChangedEventArgs(paths[i], 0, method.Passes))); 570 571 // Get the filesystem provider to handle the secure file erasures570 571 //Check that the file exists - we do not want to bother erasing nonexistant files 572 572 StreamInfo info = new StreamInfo(paths[i]); 573 FileSystem fsManager = FileSystemManager.Get(574 VolumeInfo.FromMountpoint(info.DirectoryName));575 576 //Check that the file exists - we do not want to bother erasing nonexistant files577 573 if (!info.Exists) 578 574 { … … 581 577 continue; 582 578 } 579 580 //Get the filesystem provider to handle the secure file erasures 581 FileSystem fsManager = FileSystemManager.Get( 582 VolumeInfo.FromMountpoint(info.DirectoryName)); 583 583 584 584 bool isReadOnly = false; -
trunk/eraser6/Eraser.Util/StreamInfo.cs
r1360 r1638 134 134 if (!handle.IsInvalid) 135 135 return true; 136 else if (Marshal.GetLastWin32Error() == 2 /*ERROR_FILE_NOT_FOUND*/) 136 else if (Marshal.GetLastWin32Error() == 2 /*ERROR_FILE_NOT_FOUND*/ || 137 Marshal.GetLastWin32Error() == 3 /*ERROR_PATH_NOT_FOUND*/) 137 138 return false; 138 139 -
trunk/eraser6/Eraser.Util/VolumeInfo.cs
r1360 r1638 178 178 StringBuilder volumeID = new StringBuilder(50 * sizeof(char)); 179 179 180 //Verify that the mountpoint given exists; if it doesn't we'll raise 181 //a PathNotFound exception. 182 if (!mountpointDir.Exists) 183 throw new DirectoryNotFoundException(); 184 180 185 do 181 186 {
Note: See TracChangeset
for help on using the changeset viewer.
