Changeset 913


Ignore:
Timestamp:
04/28/09 14:10:13 (6 years ago)
Author:
lowjoel
Message:

Don't throw a file name format error when erasing files with ADSes

File:
1 edited

Legend:

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

    r905 r913  
    893893                 
    894894                //Get the filesystem provider to handle the secure file erasures 
    895                 FileSystem fsManager = FileSystem.Get(VolumeInfo.FromMountpoint(paths[i])); 
     895                StreamInfo info = new StreamInfo(paths[i]); 
     896                FileSystem fsManager = FileSystem.Get(VolumeInfo.FromMountpoint(info.DirectoryName)); 
    896897 
    897898                //Remove the read-only flag, if it is set. 
    898                 StreamInfo info = new StreamInfo(paths[i]); 
    899899                bool isReadOnly = false; 
    900900                if (isReadOnly = info.IsReadOnly) 
Note: See TracChangeset for help on using the changeset viewer.