Changeset 1861 for branches/eraser6/6.0


Ignore:
Timestamp:
3/1/2010 5:48:46 AM (5 years ago)
Author:
lowjoel
Message:

Set the file times inside a try-catch as if the file is locked an IOException will be thrown.

File:
1 edited

Legend:

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

    r1846 r1861  
    4141            //detection 
    4242            info.Attributes = FileAttributes.NotContentIndexed; 
    43             info.CreationTime = info.LastWriteTime = info.LastAccessTime = MinTimestamp; 
    4443 
    4544            //Rename the file a few times to erase the entry from the file system 
     
    5251                try 
    5352                { 
     53                    info.CreationTime = info.LastWriteTime = info.LastAccessTime = MinTimestamp; 
    5454                    info.MoveTo(newPath); 
    5555                    ++i; 
Note: See TracChangeset for help on using the changeset viewer.