[jcifs] smbfile.listFiles() for only directories
Michael B Allen
mba2000 at ioplex.com
Tue Sep 14 18:17:06 GMT 2004
On Tue, 14 Sep 2004 14:13:41 -0400
Michael B Allen <mba2000 at ioplex.com> wrote:
> On Tue, 14 Sep 2004 08:28:26 -0600
> "MacDermid, Kenny" <kenny.macdermid at abridean.com> wrote:
> > Hello,
> > I'm looking for a way to have jcifs only list directories on a
> > listFiles(). I was hoping that there might be a way to do this in the
> > request passed across the network,
> Use DosFileFilter("*", SmbFile.ATTR_DIRECTORY) with listFiles(filter).
Actually you might want to add ATTR_HIDDEN and ATTR_SYSTEM to that too.
Greedo shoots first? Not in my Star Wars.
More information about the jcifs