Ignore:
Timestamp:
6/13/2010 6:21:46 AM (2 years ago)
Author:
lowjoel
Message:

Fix crash when a volume is connected but not mounted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/6.0/Eraser.Manager/DirectExecutor.cs

    r2166 r2168  
    893893                    bool isVolumeRoot = directory.Parent == null; 
    894894                    foreach (VolumeInfo volume in VolumeInfo.Volumes) 
    895                         foreach (string mountPoint in volume.MountPoints) 
    896                             if (directory.FullName == mountPoint) 
    897                                 isVolumeRoot = true; 
     895                        if (volume.IsReady) 
     896                            foreach (string mountPoint in volume.MountPoints) 
     897                                if (directory.FullName == mountPoint) 
     898                                    isVolumeRoot = true; 
    898899 
    899900                    //If the folder is a mount point, then don't delete it. If it isn't, 
Note: See TracChangeset for help on using the changeset viewer.