Changeset 1637
- Timestamp:
- 1/22/2010 5:24:40 AM (3 years ago)
- Location:
- branches/eraser6/6.0
- Files:
-
- 3 edited
-
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
-
branches/eraser6/6.0/Eraser.Manager/DirectExecutor.cs
r1441 r1637 726 726 task.OnProgressChanged(progress.Event); 727 727 728 // Get the filesystem provider to handle the secure file erasures728 //Check that the file exists - we do not want to bother erasing nonexistant files 729 729 StreamInfo info = new StreamInfo(paths[i]); 730 FileSystem fsManager = FileSystemManager.Get(731 VolumeInfo.FromMountpoint(info.DirectoryName));732 733 //Check that the file exists - we do not want to bother erasing nonexistant files734 730 if (!info.Exists) 735 731 { … … 738 734 continue; 739 735 } 736 737 //Get the filesystem provider to handle the secure file erasures 738 FileSystem fsManager = FileSystemManager.Get( 739 VolumeInfo.FromMountpoint(info.DirectoryName)); 740 740 741 741 bool isReadOnly = false; -
branches/eraser6/6.0/Eraser.Util/StreamInfo.cs
r1360 r1637 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 -
branches/eraser6/6.0/Eraser.Util/VolumeInfo.cs
r1360 r1637 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.
