Changeset 606
- Timestamp:
- 11/21/2008 12:39:09 PM (5 years ago)
- File:
-
- 1 edited
-
branches/eraser6/Manager/Task.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/Manager/Task.cs
r605 r606 157 157 protected void GetPathADSes(ref List<string> list, ref long totalSize, string file) 158 158 { 159 //Get the ADS names 160 List<string> adses = Util.File.GetADSes(new FileInfo(file)); 161 162 //Then prepend the path. 163 foreach (string adsName in adses) 164 { 165 string adsPath = file + ':' + adsName; 166 list.Add(adsPath); 167 Util.StreamInfo info = new Util.StreamInfo(adsPath); 168 totalSize += info.Length; 159 try 160 { 161 //Get the ADS names 162 List<string> adses = Util.File.GetADSes(new FileInfo(file)); 163 164 //Then prepend the path. 165 foreach (string adsName in adses) 166 { 167 string adsPath = file + ':' + adsName; 168 list.Add(adsPath); 169 Util.StreamInfo info = new Util.StreamInfo(adsPath); 170 totalSize += info.Length; 171 } 172 } 173 catch (UnauthorizedAccessException) 174 { 175 //The system cannot read the file, assume no ADSes for lack of 176 //more information. 169 177 } 170 178 }
Note: See TracChangeset
for help on using the changeset viewer.
