Changeset 2147 for trunk/eraser


Ignore:
Timestamp:
05/16/10 10:54:11 (4 years ago)
Author:
lowjoel
Message:

Forward port from Eraser 6.0: Allow erasing of UNC paths.

Location:
trunk/eraser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser

  • trunk/eraser/Eraser.Util/VolumeInfo.cs

    r2140 r2147  
    330330                if (driveType == DriveType.Network) 
    331331                { 
    332                     //Resolve the mountpoint to a UNC path 
     332                    //If the current directory is a UNC path, then return the VolumeInfo instance 
     333                    //directly 
     334                    if (currentDir.Substring(0, 2) == "\\\\" && currentDir.IndexOf('\\', 2) != -1) 
     335                        return new VolumeInfo(currentDir); 
     336 
     337                    //Otherwise, resolve the mountpoint to a UNC path 
    333338                    uint bufferCapacity = (uint)volumeID.Capacity; 
    334339                    uint errorCode = NativeMethods.WNetGetConnection( 
Note: See TracChangeset for help on using the changeset viewer.