I Also have similar question just i want to check if file not present at Sftp
location then thow exception..
--
View this message in context:
http://camel.465427.n5.nabble.com/how-to-check-that-a-file-exists-in-ftpserver-tp5758705p5790206.html
Sent from the Camel - Users mailing list archive
to route file with the pattern
> lst_20140427.tar.gz if the lst_20140427.done file exists
>
> How to define a camel route with doneFileName ??
>
> Please help me.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/How-to-route-the-file-lik
I have to route file with the pattern
lst_20140427.tar.gz if the lst_20140427.done file exists
How to define a camel route with doneFileName ??
Please help me.
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-route-the-file-like-lst-20140427-tar-gz-if-the-lst
Using noop=true and download=false can be used to check if if a file exists.
And you can set fastExistsCheck=true, and stepwise=false to scan much less.
On Sat, Nov 8, 2014 at 8:51 AM, erik_romson wrote:
> Thanks for a quick reply.
>
> I'm sorry but you have to spell it out
this message in context:
http://camel.465427.n5.nabble.com/how-to-check-that-a-file-exists-in-ftpserver-tp5758705p5758747.html
Sent from the Camel - Users mailing list archive at Nabble.com.
other folder by another process
>
> in a route, I want to
> 1: read file name(s) from database (select filename from atable where
> state='file_not_moved')
> 2: check that file exists in ftpserver/folder
> 3: [true] update atable set status='file_moved' where
from("sql:select filename from atable where state='file_not_moved'")
.enrich("file://urltoprocessedfolder?noop=true&readLock=none&fileName=${header.filename}");
this works but it seems shady somehow
Is the *best* way to create a predicate that actually check if the fil
iece of code helps others.
Thanks a lot Claus for your valuable suggestions.
Regards,
Surya.
--
View this message in context:
http://camel.465427.n5.nabble.com/sftp-file-exists-tp5751658p5751694.html
Sent from the Camel - Users mailing list archive at Nabble.com.
the latest one or else it should delete the file from source(file:
> > component), if the file already exists in destination.
> >
> > But I am unable find the correct option supported by sftp: component
> which
> > determines whether the file exists or not in the remo
ent), if the file already exists in destination.
>
> But I am unable find the correct option supported by sftp: component which
> determines whether the file exists or not in the remote sftp server ?
>
> Currently I am using the following endpoint :
> sftp://test:test@localhos
exists or not in the remote sftp server ?
Currently I am using the following endpoint :
sftp://test:test@localhost:22/sam/?stepwise=false&fileExist=Override&moveExisting=backup-of-${file:name}
What kind of option does sftp: component support to find whether file exists
or not ? And if it ex
ue
>
> Can anyone give me idea regarding how to accomplish this task?
>
> Thanks in Advance.
>
> Regards,
> Surya.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/sftp-file-exists-tp5751658.html
> Sent from the Camel - Users m
lhost:22/sam/?stepwise=false&fileExist=Move&moveExisting=true
Can anyone give me idea regarding how to accomplish this task?
Thanks in Advance.
Regards,
Surya.
--
View this message in context:
http://camel.465427.n5.nabble.com/sftp-file-exists-tp5751658.html
Sent from the Camel - Users mai
On Thu, Feb 13, 2014 at 9:23 PM, JKemp wrote:
> Hey guys,
>
> Does anyone have any further ideas here? I don't see any obvious way to get
> the listing of file names. Or should I be looking at another way to solve
> this problem?
>
You can use the java.io file api to che
Hey guys,
Does anyone have any further ideas here? I don't see any obvious way to get
the listing of file names. Or should I be looking at another way to solve
this problem?
Thanks.
--
View this message in context:
http://camel.465427.n5.nabble.com/File-Exists-tp5746608p5747277.html
cFile.html
<http://camel.apache.org/maven/camel-2.12.0/camel-core/apidocs/org/apache/camel/component/file/GenericFile.html>
Can you please clarify how the listing is passed to the filter?
Thank you.
--
View this message in context:
http://camel.465427.n5.nabble.com/File-Exists-tp5746
, February 01, 2014 1:17 AM
To: users@camel.apache.org
Subject: Re: File Exists
Ah, whoops, my fault. I was looking at the File documentation and not at
File2.
I think I have a working solution, but I'm wondering if I'm going about this
in the best way.
I set up my route with
e the second file.
Since I was using maxMessagesPerPoll, I thought this would work as a batch
consumer, but I don't see the CamelBatchSize header populated when I print
the headers. Is there any way to make the filtering inspect all the files
in the batch at once?
Am I off track here?
Thanks
now what sort of expression I
> could put in to detect that they've both been found. Or should I be putting
> an Aggregator at the end and adding the filter to that somehow?
>
> Thanks for the quick reply.
>
>
>
> --
> View this message in context:
> http://camel.
at sort of expression I
could put in to detect that they've both been found. Or should I be putting
an Aggregator at the end and adding the filter to that somehow?
Thanks for the quick reply.
--
View this message in context:
http://camel.465427.n5.nabble.com/File-Exists-tp5746608p5746640.htm
Need to check how it behaves ?
>
Camel filters first the files, before it processes the batch of files
that was accepted.
>
>
> -Original Message-
> From: Claus Ibsen [mailto:claus.ib...@gmail.com]
> Sent: Thursday, January 30, 2014 3:44 PM
> To: users@camel.apache
Ibsen [mailto:claus.ib...@gmail.com]
Sent: Thursday, January 30, 2014 3:44 PM
To: users@camel.apache.org
Subject: Re: File Exists
On Thu, Jan 30, 2014 at 4:49 AM, JKemp wrote:
> Hey guys,
>
> I'm trying to write a Camel route that will only kick off once two files are
> present on
d file and kick out an error if the second file doesn't
> exist, but this seems a little kludgy. Is there a better way to accomplish
> this?
>
> Thanks.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/File-Exists-tp5746608.html
&g
cond file doesn't
> exist, but this seems a little kludgy. Is there a better way to accomplish
> this?
>
> Thanks.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/File-Exists-tp5746608.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
in context:
http://camel.465427.n5.nabble.com/File-Exists-tp5746608.html
Sent from the Camel - Users mailing list archive at Nabble.com.
25 matches
Mail list logo