Changeset 1649 for branches/eraser6/6.0


Ignore:
Timestamp:
01/23/10 02:24:57 (5 years ago)
Author:
lowjoel
Message:

Fixed IOException thrown when users erase the root of a drive (since we can't move the root of drives nor set its attributes)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/6.0/Eraser.DefaultPlugins/FileSystems/Windows.cs

    r1470 r1649  
    134134                DeleteFile(file); 
    135135 
     136            //Check that this folder is not the root of a drive since we can't delete 
     137            //roots of drives. 
     138            if (info.Parent == null) 
     139                return; 
     140 
    136141            //Then clean up this folder. 
    137142            for (int i = 0, tries = 0; i < FileNameErasePasses; ++tries) 
Note: See TracChangeset for help on using the changeset viewer.