[jcifs] getParent() for workgroup returns workgroup

Michael B Allen mba2000 at ioplex.com
Wed Mar 10 20:23:11 GMT 2004


Kenny MacDermid said:
> Hello all,
>
> I hope this question hasn't been beat to death already, but there is no
> 'search' in the archive and I couldn't find it.
>
> I'm looking to make a samba browser in java. I want to be able to start
> the
> user at: 'smb://' and have them browse up or down to the location they
> want.
>
> The problem I'm having is when they try to browse up from a workgroup they
> get the same workgroup. Browsing up basically just replaces the current
> SmbFile with 'new SmbFile(SmbFile.getParent())'. SmbFile.getParent() from
> a
> workgroup appears to return that workgroup. Is this correct, or am I going
> about it the wrong way. If I have to I'll just push them on a stack to

No that's not correct. The parent of a workgroup should be "smb://". There
was a related problem reported that is almost certainly connected. I will
take a look.

Mike



More information about the jcifs mailing list