Touching directory date/time

Are you missing a feature? Request its implementation here.
aiken
Posts: 3
Joined: Sat Feb 18, 2006 12:06 am

Touching directory date/time

Post by aiken »

Hi -- I'm not sure if this is an Oxygen issue, or a Java issue, or what. But one way or another, when files are saved from within Oxygen, the last modified date/time on the containing diretory isn't updated. Saving the same files from dreamweaver, notepad, etc, works as expected, so it's not like something up with this machine.

Any chance of getting that updated? Our app uses that date/time to determine when its cache of xslt templates needs to be refreshed.

Thanks
-b
Radu
Posts: 9505
Joined: Fri Jul 09, 2004 5:18 pm

Post by Radu »

Hi Aiken,

The last modified date of the directory is changed when files are added or removed to that certain directory. This is an operating system feature so it also happens when you save a file from Oxygen to that particular directory (and the file was not there before).
But the modification time does not change for the directory if you only modify a file already added to it and then save (I tested and notepad does not do that).
So looking at the modification date for a directory is not a good idea if you want to check whether files have been modified in it.

Regards, Radu
Post Reply