Changeset 2646
- Timestamp:
- 5/22/2012 11:37:14 AM (12 months ago)
- Location:
- trunk/eraser/Eraser.DefaultPlugins
- Files:
-
- 2 edited
-
ErasureTargets/FileSystemObjectErasureTarget.cs (modified) (2 diffs)
-
FileSystems/Windows.cs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser/Eraser.DefaultPlugins/ErasureTargets/FileSystemObjectErasureTarget.cs
r2641 r2646 398 398 if (processStr.Length > 2) 399 399 { 400 processes = processStr.ToString().Remove(processStr.Length - 2) ).Trim());400 processes = processStr.ToString().Remove(processStr.Length - 2).Trim(); 401 401 } 402 402 else … … 408 408 throw new SharingViolationException(S._( 409 409 "Could not force closure of file \"{0}\" {1}", info.FileName, 410 S._("(locked by {0})", processes , info.FileName)));410 S._("(locked by {0})", processes))); 411 411 } 412 412 } -
trunk/eraser/Eraser.DefaultPlugins/FileSystems/Windows.cs
r2641 r2646 144 144 { 145 145 StringBuilder processStr = new StringBuilder(); 146 foreach (OpenHandle handle in remainingHandles)146 foreach (OpenHandle handle in OpenHandle.Close(info.FullName)) 147 147 { 148 148 try … … 162 162 if (processStr.Length > 2) 163 163 { 164 processes = processStr.ToString().Remove(processStr.Length - 2) ).Trim());164 processes = processStr.ToString().Remove(processStr.Length - 2).Trim(); 165 165 } 166 166 else … … 171 171 172 172 throw new SharingViolationException(S._( 173 "Could not force closure of file \"{0}\" {1}", info.F ileName,174 S._("(locked by {0})", processes , info.FileName)));173 "Could not force closure of file \"{0}\" {1}", info.FullName, 174 S._("(locked by {0})", processes))); 175 175 } 176 176
Note: See TracChangeset
for help on using the changeset viewer.
