No you cannot do dynamic inputs. However you can input from the root folder where those dirs are, and use the filter option to filter to only include the directory of todays date. Then you need to use the recursive=true option. And you can use maxDeep to limit going down too far.
For the filer option you would need to write a bit of java code to decide whether to include the file / directory or not. On Mon, Aug 10, 2015 at 9:49 AM, hayden74 <hdr...@gmail.com> wrote: > Many thanks Claus. I've tried to simply the scenario and ended up asking the > wrong question. My bad. > > The input directory in my scenario changes daily based on the date. So the > route looks like this: > > string todaysDateStr = "01-01-2015"; //this value changes based on the > current date > from("smb://networkDriveOne/"+ todaysDateStr > +"?noop=true&fileName=inputFile.csv") > .to("smb://networkDriveTwo?fileExist=Override") > > So everyday there will be a new input directory with new inputFile.csv in > it. Camel, however, doesn't copy the file unless I restart it. > Does Camel handle dynamic input directories? > > Moving/deleting files is not an option as they are used by other legacy > systems. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/smb-endpoint-modified-files-not-copied-to-destination-tp5770499p5770515.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2nd edition: http://www.manning.com/ibsen2