Ignore:
Timestamp:
6/13/2010 12:29:44 AM (4 years ago)
Author:
lowjoel
Message:

Implements #273: Use NtSetInformationFile? to deeply set file times.

File:
1 edited

Legend:

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

    r2150 r2155  
    101101                { 
    102102                    //Reset the file access times: after every rename the file times may change. 
    103                     info.CreationTime = info.LastWriteTime = info.LastAccessTime = MinTimestamp; 
     103                    info.SetTimes(MinTimestamp, MinTimestamp, MinTimestamp, MinTimestamp); 
    104104 
    105105                    //Try to rename the file. If it fails, it is probably due to another 
     
    371371            { 
    372372                //Reset the file times 
    373                 streamInfo.LastAccessTime = lastAccess; 
    374                 streamInfo.LastWriteTime = lastWrite; 
    375                 streamInfo.CreationTime = created; 
     373                streamInfo.SetTimes(MinTimestamp, created, lastWrite, lastAccess); 
    376374            } 
    377375        } 
Note: See TracChangeset for help on using the changeset viewer.