With code 

        *Date date = new Date();
        date.setHours(9);
        date.setMinutes(44);
        date.setSeconds(1);
        System.out.println("now :" + date.getTime());
        if (date.getTime() > file.getLastModified()) {
            System.out.println(file.getFileName() + ":" +
file.getLastModified());
        }
        return date.getTime() > file.getLastModified();*

my route 
      *
from("file:D:\\test\\folder1?noop=true&filter=#myFilter").to("file:D:\\test\\folder2");*

when camel is running, I copy filetest to folder1 at 09:45 and camel also
copy this file to folder2
I don't understand why filetest's lastmodified is smaller than 09:44:01
result of above code
*now : 1481255041490
filetest:1481112865635*

Thanks,





--
View this message in context: 
http://camel.465427.n5.nabble.com/Copy-current-file-in-a-folder-tp5791093p5791284.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to