Changeset 1887
- Timestamp:
- 3/14/2010 11:41:38 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/6.0/Eraser.DefaultPlugins/FileSystems/Windows.cs
r1861 r1887 209 209 continue; 210 210 211 FileAttributes fileAttr = streamInfo.Attributes;212 213 211 try 214 212 { 215 213 //Reset the file attributes. 214 FileAttributes fileAttr = streamInfo.Attributes; 216 215 streamInfo.Attributes = FileAttributes.Normal; 217 EraseFileClusterTips(files[i], method); 216 217 try 218 { 219 EraseFileClusterTips(files[i], method); 220 } 221 finally 222 { 223 streamInfo.Attributes = fileAttr; 224 } 218 225 } 219 226 catch (UnauthorizedAccessException) … … 228 235 "cluster tips erased. The error returned was: {1}", files[i], 229 236 e.Message), LogLevel.Error)); 230 }231 finally232 {233 streamInfo.Attributes = fileAttr;234 237 } 235 238 eraseCallback(i, files.Count, files[i]);
Note: See TracChangeset
for help on using the changeset viewer.
