Hi, I am trying to copy files of any format(xml,json etc) placed in my server. I want to copy all files from my server to local machine.
The code for copying the file I am using is :- <proxy name="TestProxy" startOnLoad="true" transports="http https" xmlns=" http://ws.apache.org/ns/synapse"> <target> <inSequence> <fileconnector.copy> <source>sftp://username:password@hostname /home/folder1/</source> <destination>file:///D:/WSO2FilesTest</destination> <filePattern>.*.*</filePattern> </fileconnector.copy> </inSequence> <outSequence/> <faultSequence/> </target> </proxy> But I am getting the error as "Could not list the contents of "sftp://username:***@hostname/home/folder1" because it is not a folder." The file does exist inside of the folder1. What do I need to change in my code? Thank you, Aman
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev