You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Efrain Klein <ek...@mindbridge.com> on 2004/04/01 17:17:37 UTC

VFS: Question on navigating SMB/CIFS filesystems

I've written a small application which uses VFS to navigate through
different filesystems.  So far I've had no problem navigating ftp and
local filesystems, yet I encounter a problem when trying to navigate
down into subdirectories of smb filesystems. 

When I attempt to resolve a uri for an smb filesystem to one of the
local windows boxen here by specifying a uri to the filesystem manager I
have no problem with viewing/accessing files at the top level of the
share, yet when I try to navigate down into the share is where my
trouble begins.  If I attempt to get a child with getChild(somesubdir)
it ends up returning a null FileObject, and when I use resolveFile(uri +
somesubdir) it returns a valid FileObject but when I try to list its
children it tells me it cannot list the contents of the folder.  I've
already determined that I can navigate through this filesystem without
any problem through other means: mounting the share locally, navigating
it through konqueror, etc.   I cannot find anything of the sort in the
documentation that mentions the need for special treatment of SMB
shares. Is there something I'm missing here?

Thanks in advance, folks!

Cheers,

Efrain Klein



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: VFS: Question on navigating SMB/CIFS filesystems

Posted by Mario Ivankovits <ma...@ops.co.at>.
Efrain Klein wrote:

>yet I encounter a problem when trying to navigate
>down into subdirectories of smb filesystems. 
>  
>
...

>I cannot find anything of the sort in the
>documentation that mentions the need for special treatment of SMB
>shares. Is there something I'm missing here?
>  
>

During the setup of the VFS test server, i encountered a simmilar problem.
The problem is the smb library, it requires the directory path to end 
with an "/".

I have fixed this in my local vfs version and the test cases runs fine 
now. So i think this might fix your problem too.

I hope i will be able to commit this thing in the near future - maybe a 
vote request might come up soon (thanks to Michael)

Else i will contact you via pm to send you a patched jar to see if it helps.
Please keep an eye on this list!

Thanks!
Mario



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org