delete file from folder
Posted on 2014-10-08
I need to write java code which will copy the file from one folder to another and will deleted after one hour.
the time is dynamic say if the file copied at destination at 15:00 then it should be deleted at 16:00
if the file copied at destination at 24:00 then it should be deleted at 01:00
File Copy is Ok with Apache utils,but how to achieve the later part?