Please see http://commons.apache.org/proper/commons-vfs/filesystems.html#SFTP
sftp://[ *username*[: *password*]@] *hostname*[: *port*][ *absolute-path*] Note "absolute path". I've wrote to VFS developers, they fixed that in trunk. Ilya. 2013/8/13 Rajika Kumarasiri <[email protected]> > Where did you find that problem in VFS documentation ? > > Rajika > > > On Tue, Aug 13, 2013 at 7:16 AM, Ilya Rodionov <[email protected] > >wrote: > > > The problem has been solved. > > It was because of VFS documentation imping the userDirIsRoot=false, but > > it's true by default. > > I think we should write a comment about that fact. > > > > Best regards, > > Ilya. > > > > > > 2013/8/12 Ilya Rodionov <[email protected]> > > > > > Thanks for example. > > > But I am still getting the error with both my and your example. > > > > > > 2013-08-12 15:07:05,037 [-] [vfs-Worker-1] DEBUG VFSTransportListener > > > Unable to access or read file or directory : > > > sftp://zdo":***@"remote_host/home/zdo/test/in/. Reason: The file does > not > > > exists! > > > > > > while > > > > > > [synapse@JBoss-GW bin]$ ssh zdo@remote_host ls -l /home/zdo/test/in/ > > > [email protected]'s password: > > > total 65536 > > > -rw-r--r-- 1 zdo zdo 434 Aug 12 14:01 test01.xml > > > > > > It seems something goes wrong, I will try to debug this error. > > > I am using today trunk version. > > > > > > > > > > > > 2013/8/10 Rajika Kumarasiri <[email protected]> > > > > > >> Here is a full configuration. > > >> > > >> > > >> > > > https://svn.apache.org/repos/asf/synapse/trunk/java/repository/conf/sample/synapse_sample_270.xml > > >> > > >> Rajika > > >> > > >> > > >> On Fri, Aug 9, 2013 at 3:18 PM, Rajika Kumarasiri < > > >> [email protected]> wrote: > > >> > > >> > Below should be corrected as; > > >> > > > >> > vfs:sftp://user_name:pass_word@host/home/rajika/path/to/file. > > >> > > > >> > Rajika > > >> > > > >> > > > >> > On Fri, Aug 9, 2013 at 2:58 PM, Rajika Kumarasiri < > > >> > [email protected]> wrote: > > >> > > > >> >> It's certainly possible to scan a folder in a sftp server. Use the > > >> below > > >> >> connection url for sftp. > > >> >> > > >> >> vfs:sftp:///home/rajika/path/to/file > > >> >> > > >> >> I think we need to make a sample out of this. > > >> >> > > >> >> Rajika > > >> >> > > >> >> > > >> >> On Fri, Aug 9, 2013 at 11:05 AM, Ilya Rodionov < > > >> [email protected]>wrote: > > >> >> > > >> >>> Hello, > > >> >>> is it possible to use VFS SFTP to scan remote directory? VFS's > page > > >> says > > >> >>> there is no directory content featrure for both FILE and SFTP > > >> protocols, > > >> >>> but it works for FILE. Is it VFS restriction or not? Thank in > > advance. > > >> >>> > > >> >>> Best regards, > > >> >>> Ilia Rodionov. > > >> >>> > > >> >> > > >> >> > > >> > > > >> > > > > > > > > >
