Fog Creek Software
Discussion Board

Welcome! and rules

Joel on Software


I have a file. i get the creation time using
File.GetCreationTime. then i go and delete that file. and
then create it again and print the File.GetCreationTime.
It is giving me the old creation time itself...y is it

Monday, August 23, 2004

What do the creation times look like in Windows Explorer?  If they also match, I blame the OS, probably a bug - if they aren't the same, I blame the framework - again, probably a bug.

FWIW - this is total speculation, I haven't tried to repro this on any version of the framework.

Greg Hurlman
Tuesday, August 24, 2004

IN Windows Explorer the time is coming properly.
only when i retreive the file.getcreatiotime it gives the old time.

Wednesday, August 25, 2004

Saw the same behavior myself on this, as long as you delete the file from the directory.  As soon as you empty the recycle bin - the next file creation will haev the correct time.  So something to do with how Windows determines that a file is actually deleted...though it is odd that a new file created with the same name as a previously "deleted" but not "recycled" file wouldn't update...

Wednesday, September 8, 2004

*  Recent Topics

*  Fog Creek Home