dsl - changing directory from home to root in camel-ftp -


i using following in camel config:

        <camel:from uri="file:{{camel.route.icl.from.file.path}}?filter=#filefiltermavro&amp;initialdelay={{camel.route.from.file.initialdelay}}&amp;delay={{camel.route.from.file.delay}}&amp;usefixeddelay=true&amp;runlogginglevel=trace&amp;startingdirectorymustexist={{camel.route.from.file.startingdirectorymustexist}}&amp;autocreate={{camel.route.from.file.autocreate}}&amp;maxmessagesperpoll={{camel.route.from.file.maxmessagesperpoll}}&amp;eagermaxmessagesperpoll=true&amp;delete=false&amp;readlock=idempotent&amp;readlocklogginglevel=off&amp;readlockremoveonrollback=false&amp;readlockremoveoncommit=false&amp;idempotent=true&amp;idempotentkey=${file:onlyname}&amp;idempotentrepository=#iclmessageidrepository&amp;recursive=false&amp;move={{camel.route.icl.complete.file.path}}&amp;movefailed={{camel.route.icl.failed.file.path}}" />          <camel:to uri="sftp://user1@ecomt199.qintra.com:22/nas/tst2/inputfiles?password=pass1234&amp;runlogginglevel=trace"/>      </camel:route> 

now, working. able sftp file.

problem want file at: /nas/tst2/inputfiles . going at: /home/user1/nas/tst2/inputfiles

now, how can make going @ /nas/tst2/inputfiles ?? /nas/ , /home/ both on /

the problem changing default /home/.

which attribute can use, not able find or understand how in camel dsl. please help!

camel indeed doesn't allow qualified paths in current version. however, long user has privileges, use path workaround:

../../../../../../../../this_is_the_root_folder/usr/.... 

you start user's directory , go in tree until reach root. need make sure added enough ../../ root.

not nicest solution, simple , worked me.


Comments

Popular posts from this blog

php - Cannot override Laravel Spark authentication with own implementation -

What is happening when Matlab is starting a "parallel pool"? -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -