I am using apache VFS for uploading files to sftp server. But one sftp server has a limitation that it's root directory doesn't have any permission. But the directory which is allowed for my application is let's say "/ftp/abc/". This directory is accessible using command line. But Apache VFS first tries to switch to root directory "/" which fails due to lack of permissions in my case.
Edit: Setting userDirIsRoot
to true prevents vfs from switching to root directory. But in that case we have to specify path relative to user's root directory. Which means userDirIsRoot
is either true or else you can't specify absolute path. This doesn't sound right.
Is there a simple way, using which we can specify absolute path, without vfs trying to switch to bare root directory of base filesystem.