Java Application

Delete Files Older than a specified day

wowbelly 2012. 4. 12. 16:26

The Java API doesn't have a method to get the creation date for files. You can do it through JNI or perhaps a 3rd party library.

What you could perhaps do is not use the create date but the last-modification date. That's available through the lastModified() method.

 

http://www.coderanch.com/t/384581/java/java/Delete-Files-Older-than-days