Changeset 2146 for branches/eraser6/6.0


Ignore:
Timestamp:
5/16/2010 10:53:05 AM (5 years ago)
Author:
lowjoel
Message:

Allow erasing of UNC paths.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/6.0/Eraser.Util/VolumeInfo.cs

    r2139 r2146  
    290290                if (driveType == DriveType.Network) 
    291291                { 
    292                     //Resolve the mountpoint to a UNC path 
     292                    //If the current directory is a UNC path, then return the VolumeInfo instance 
     293                    //directly 
     294                    if (currentDir.Substring(0, 2) == "\\\\" && currentDir.IndexOf('\\', 2) != -1) 
     295                        return new VolumeInfo(currentDir); 
     296 
     297                    //Otherwise, resolve the mountpoint to a UNC path 
    293298                    uint bufferCapacity = (uint)volumeID.Capacity; 
    294299                    uint errorCode = KernelApi.NativeMethods.WNetGetConnection( 
Note: See TracChangeset for help on using the changeset viewer.