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