Mark Shifman wrote:
FileObject fo_test= fsManager.resolveFile( "sftp://myname:[EMAIL PROTECTED]/pathtofile/myfile.tgz")

but I don't know how to read a file in this object or make the fileobject into something with children.

please try
FileObject fo_test= fsManager.resolveFile( "tgz:sftp://myname:[EMAIL PROTECTED]/pathtofile/myfile.tgz!")

It threw the following.
org.apache.commons.vfs.FileSystemException: Badly formed URI "tgz:sftp://myname:[EMAIL PROTECTED]/pathtofle/myfile.tgz!".
Do you have commons-compress in your classpath? Its needed to unpack tar files.

Please refer to http://jakarta.apache.org/commons/vfs/download.html where to find the jar file.

VFS silently do not install a fileprovider if a optional library isnt available - and from your stacktrace VFS falls back to the default fileprovider which dont know how to handle tgz files.

---
Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to