Java: Delete Files From Path Based On Duration

This function will recursivly delete directories and files inside the said path but it will not delete the path itself. The method takes into account the number of days since the file was created or updated If it is equal or more than the number of duration days, then the file will be deleted, else ignored. ?View... 

Source:  Tech Tips Tricks

Disclaimer: PinoyBlogoSphere.com(PBS) claims no credit for any content(posts, articles, texts, images, videos) featured on this site unless otherwise noted. All contents are copyright to their owners/sources. PBS is in no way responsible for or has control of the content of any external web site links. Information on this site may contain errors or inaccuracies; we do not make warranty as to the correctness or reliability of the site’s content. If you own rights to any of the content, and do not wish them to appear on this site, please contact us via e-mail and they will be removed.
Your Ad Here

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!

  . .