Ignore:
Timestamp:
6/13/2010 3:30:16 AM (2 years ago)
Author:
lowjoel
Message:

Since we are just simply deleting all temporary files when filling up the drive with junk files, we must reset all file times to invalid.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser.DefaultPlugins/FileSystems/Windows.cs

    r2159 r2161  
    3838    public abstract class WindowsFileSystem : FileSystem 
    3939    { 
     40        public override void ResetFileTimes(FileSystemInfo info) 
     41        { 
     42            //Reset the file access times: after every rename the file times may change. 
     43            info.SetTimes(MinTimestamp, MinTimestamp, MinTimestamp, MinTimestamp); 
     44        } 
     45 
    4046        public override void DeleteFile(FileInfo info) 
    4147        { 
     
    100106                try 
    101107                { 
    102                     //Reset the file access times: after every rename the file times may change. 
    103                     info.SetTimes(MinTimestamp, MinTimestamp, MinTimestamp, MinTimestamp); 
     108                    ResetFileTimes(info); 
    104109 
    105110                    //Try to rename the file. If it fails, it is probably due to another 
Note: See TracChangeset for help on using the changeset viewer.