Changeset 1051
- Timestamp:
- 5/10/2009 9:46:13 AM (4 years ago)
- File:
-
- 1 edited
-
branches/eraser6/Manager/DirectExecutor.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/Manager/DirectExecutor.cs
r1040 r1051 878 878 { 879 879 DirectoryInfo info = new DirectoryInfo(fldr.Path); 880 if (info.GetFiles("*", SearchOption.AllDirectories).Length == 0) 880 881 //See if this is the root of a volume. 882 bool isVolumeRoot = info.Parent == null; 883 foreach (VolumeInfo volume in VolumeInfo.Volumes) 884 foreach (string mountPoint in volume.MountPoints) 885 if (info.FullName == mountPoint) 886 isVolumeRoot = true; 887 888 //If the folder is a mount point, then don't delete it. If it isn't, 889 //search for files under the folder to see if it is empty. 890 if (!isVolumeRoot && info.GetFiles("*", SearchOption.AllDirectories).Length == 0) 881 891 { 882 892 FileSystem fsManager = FileSystem.Get(VolumeInfo.FromMountpoint(fldr.Path));
Note: See TracChangeset
for help on using the changeset viewer.
