Changeset 2560


Ignore:
Timestamp:
3/21/2012 1:45:48 AM (2 years ago)
Author:
lowjoel
Message:

Supplements r2549: Resolve reparse points only for as long as the reparse point we are referring to exists; otherwise fall back to volume name resolution.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser.Util/VolumeInfo.cs

    r2555 r2560  
    308308                    //GetVolumeNameForVolumeMountPoint since it will return an error if 
    309309                    //the path given is a reparse point, but not a volume reparse point. 
    310                     while ((new DirectoryInfo(currentDir).Attributes & FileAttributes.ReparsePoint) != 0) 
     310                    while (mountpointDir.Exists && 
     311                        (mountpointDir.Attributes & FileAttributes.ReparsePoint) != 0) 
    311312                    { 
    312313                        currentDir = ExtensionMethods.PathUtil.ResolveReparsePoint(currentDir); 
Note: See TracChangeset for help on using the changeset viewer.