commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Xin <>
Subject VFS and SMB file provider question
Date Tue, 31 May 2011 07:03:05 GMT
Hi, All

I'm new to VFS, and I'm trying to use VFS and SMB file provider to access
Windows smb shares. I can use JCIFS to access my shares directly, but when I
was working with VFS, I always got an error message like
Could not determine the type of file "smb://"*"

Here's the code that I used to access shares.

                        fsm = VFS.getManager();
FileObject smbFile = fsm.resolveFile( "smb://" );
FileObject files[] = smbFile.getChildren();

I can successfully access the local file system without problems.



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message