Changeset 2638


Ignore:
Timestamp:
5/22/2012 8:22:10 AM (2 years ago)
Author:
lowjoel
Message:

Handle IOExceptions which we get when we are enumerating directories. This can happen when a target slated for erasure is disconnected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser.DefaultPlugins/ErasureTargets/FileSystemObjectErasureTarget.cs

    r2632 r2638  
    129129                        info.FullName, e.Message), LogLevel.Error); 
    130130                } 
     131                catch (IOException e) 
     132                { 
     133                    //We can get IOExceptions if the drive was disconnected during traversal. 
     134                    //Such an occurrance would be when the user disconnects from a network share. 
     135                    Logger.Log(S._("Could not erase files and subfolders in {0} because {1}", 
     136                        info.FullName, e.Message), LogLevel.Error); 
     137                } 
    131138            } 
    132139 
Note: See TracChangeset for help on using the changeset viewer.