Hello All,
I want to purge all log files in a directory that are over 60 days old. Is there a Java class that will tell me how old a file is or perhaps a "created date?" I have been looking and can't find one. Hint I do have the YYYYMMDDHHMM as part of the file's name. Can I turn this into a date?
I could also go another route where I subtract from todays date. It seems like if I go this route that I will need to do a calculation of time in miliseconds from some day in 1970.
Which is the best route? Or is there another?
Thanks for any help,
Bradley
I want to purge all log files in a directory that are over 60 days old. Is there a Java class that will tell me how old a file is or perhaps a "created date?" I have been looking and can't find one. Hint I do have the YYYYMMDDHHMM as part of the file's name. Can I turn this into a date?
I could also go another route where I subtract from todays date. It seems like if I go this route that I will need to do a calculation of time in miliseconds from some day in 1970.
Which is the best route? Or is there another?
Thanks for any help,
Bradley