Changeset 1738
- Timestamp:
- 2/3/2010 12:53:49 AM (2 years ago)
- File:
-
- 1 edited
-
branches/eraser6/6.0/Eraser.Manager/Task.cs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/6.0/Eraser.Manager/Task.cs
r1737 r1738 409 409 string adsPath = file + ':' + adsName; 410 410 list.Add(adsPath); 411 Util.StreamInfo info = new Util.StreamInfo(adsPath);411 StreamInfo info = new StreamInfo(adsPath); 412 412 totalSize += info.Length; 413 413 } … … 748 748 continue; 749 749 750 GetRecyclerFiles(dir, re f result, ref totalSize);750 GetRecyclerFiles(dir, result, ref totalSize); 751 751 } 752 752 } … … 761 761 /// <param name="paths">The list of files to store path information in.</param> 762 762 /// <param name="totalSize">Receives the total size of the files.</param> 763 private void GetRecyclerFiles(DirectoryInfo info, refList<string> paths,763 private void GetRecyclerFiles(DirectoryInfo info, List<string> paths, 764 764 ref long totalSize) 765 765 { 766 766 try 767 767 { 768 foreach (File SystemInfo fsInfo in info.GetFileSystemInfos())768 foreach (FileInfo fileInfo in info.GetFiles()) 769 769 { 770 FileInfo fileInfo = fsInfo as FileInfo; 771 if (fileInfo != null) 772 { 773 totalSize += fileInfo.Length; 774 GetPathADSes(paths, out totalSize, fileInfo.FullName); 775 paths.Add(fileInfo.FullName); 776 } 777 else 778 GetRecyclerFiles((DirectoryInfo)fsInfo, ref paths, ref totalSize); 770 if (!fileInfo.Exists || (fileInfo.Attributes & FileAttributes.ReparsePoint) != 0) 771 continue; 772 773 totalSize += fileInfo.Length; 774 GetPathADSes(paths, out totalSize, fileInfo.FullName); 775 paths.Add(fileInfo.FullName); 779 776 } 777 778 foreach (DirectoryInfo directoryInfo in info.GetDirectories()) 779 if ((directoryInfo.Attributes & FileAttributes.ReparsePoint) == 0) 780 GetRecyclerFiles(directoryInfo, paths, ref totalSize); 780 781 } 781 782 catch (UnauthorizedAccessException e)
Note: See TracChangeset
for help on using the changeset viewer.
