Hi All,
I have a route which consumes files from FTP server and distributes them to HDFS.
Now,I have a processor in which I want to rename a file and append properties like file size and timestamp in the file name. Earlier,I was doing it by getting the GenericFile instance from exchange body.
Now I have enabled Stream Caching on this route and the body is a cached object rather than a GenericFile.
Is there any way I can get the file meta data like file size,timestamp etc without referring to the body?
I am using Camel 2.12.1.
Thanks!
Chirag
I have a route which consumes files from FTP server and distributes them to HDFS.
Now,I have a processor in which I want to rename a file and append properties like file size and timestamp in the file name. Earlier,I was doing it by getting the GenericFile instance from exchange body.
Now I have enabled Stream Caching on this route and the body is a cached object rather than a GenericFile.
Is there any way I can get the file meta data like file size,timestamp etc without referring to the body?
I am using Camel 2.12.1.
Thanks!
Chirag