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
'Java Application' 카테고리의 다른 글
Tuning the size of Thread Pool (0) | 2018.07.12 |
---|---|
StringBuffer versus String [Copied] (0) | 2012.12.31 |
Getting "Failed to create the Java Virtual Machine" when launching Eclipse (0) | 2012.12.27 |
Eclipse and Java for Total Beginners : Free Video Tutorials (0) | 2012.06.30 |
Java Thread - from Java Tutorials - 자바쓰레드 만들기 기초 (0) | 2012.05.18 |