commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Delsaux <>
Subject Re: [VFS][SFTP] Unable to navigate to directory
Date Wed, 15 Sep 2010 16:01:04 GMT
On Wed, Sep 15, 2010 at 5:52 PM, Ralph Goers <> wrote:
> So the data "directory" is a link to another mount.  I'm not familiar with the SFTP
code but my guess is there is something preventing it from following links.
I'm making the assumption the link is not followed by commons VFS, as
debugging indicates that "data" has FileType.FILE where I guess
FileType.DIRECTORY would be needed for getChildren() and the such to
work, no ?

Unfortunatly, when trying to read symlink content (using
getFileContent().getInputStream()), all i get is

org.apache.commons.vfs.FileSystemException: Could not read file
	at org.apache.commons.vfs.provider.AbstractFileObject.getInputStream(
	at org.apache.commons.vfs.provider.DefaultFileContent.getInputStream(

Caused by: 4: Failure
	at com.jcraft.jsch.ChannelSftp.throwStatusError(
	at com.jcraft.jsch.ChannelSftp._get(
	at com.jcraft.jsch.ChannelSftp.get(
	at com.jcraft.jsch.ChannelSftp.get(
	at org.apache.commons.vfs.provider.sftp.SftpFileObject.doGetInputStream(
	at org.apache.commons.vfs.provider.AbstractFileObject.getInputStream(
	... 7 more

However, the symlink targets to that folder

quasar:/appli/perigee_63D # ls -la /mnt/md0/
total 8144379
drwxr-xr-x 20 root     root           880 Sep  6 09:30 .
drwxr-xr-x  8 root     root           256 Jun 24 10:22 ..
drwxr-xr-x  3 root     root            72 Jan 25  2010
data_destination <-- YES, This one !

Which i should be able to navigate, no ?

Nicolas Delsaux

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message