Changeset 2149 for trunk/eraser/Eraser.DefaultPlugins/ErasureTargets/FileSystemObjectErasureTarget.cs
- Timestamp:
- 5/16/2010 11:14:29 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser/Eraser.DefaultPlugins/ErasureTargets/FileSystemObjectErasureTarget.cs
r2144 r2149 123 123 try 124 124 { 125 //Get the ADS names 126 IList<string> adses = file.GetADSes(); 127 StreamInfo[] result = new StreamInfo[adses.Count]; 128 129 //Then prepend the path. 130 for (int i = 0; i < adses.Count; ++i) 131 { 132 StreamInfo info = new StreamInfo(file.FullName + ':' + adses[i]); 133 result[i] = info; 134 } 125 return file.GetADSes().ToArray(); 135 126 } 136 127 catch (FileNotFoundException) … … 150 141 processStr.AppendFormat( 151 142 System.Globalization.CultureInfo.InvariantCulture, 152 "{0}, ", (System.Diagnostics.Process.GetProcessById(handle.ProcessId)).MainModule.FileName);143 "{0}, ", handle.Process.MainModule.FileName); 153 144 } 154 145 catch (System.ComponentModel.Win32Exception) … … 156 147 processStr.AppendFormat( 157 148 System.Globalization.CultureInfo.InvariantCulture, 158 "Process ID {0}, ", handle.Process Id);149 "Process ID {0}, ", handle.Process.Id); 159 150 } 160 151 } … … 320 311 processStr.AppendFormat( 321 312 System.Globalization.CultureInfo.InvariantCulture, 322 "{0}, ", System.Diagnostics.Process.GetProcessById(handle.ProcessId).MainModule.FileName);313 "{0}, ", handle.Process.MainModule.FileName); 323 314 } 324 315 catch (System.ComponentModel.Win32Exception) … … 326 317 processStr.AppendFormat( 327 318 System.Globalization.CultureInfo.InvariantCulture, 328 "Process ID {0}, ", handle.Process Id);319 "Process ID {0}, ", handle.Process.Id); 329 320 } 330 321 }
Note: See TracChangeset
for help on using the changeset viewer.
