[jcifs] Issue: hidden children omitted from folder content li st
Wang, Tony
Tony.Wang at McKesson.com
Wed Feb 4 23:02:09 GMT 2004
I think this is the incompatibility of java.io.File itself. Hidden files are
hidden so ... there hidden. It makes sense to me.
-----Original Message-----
From: Julian Reschke [mailto:julian.reschke at gmx.de]
Sent: Wednesday, February 04, 2004 5:51 PM
To: Michael B Allen
Cc: jcifs at lists.samba.org
Subject: Re: [jcifs] Issue: hidden children omitted from folder content list
Michael B Allen wrote:
> Julian Reschke said:
>
>> smb.setAttributes(smb.getAttributes() | smb.ATTR_HIDDEN);
>>
>> System.out.println("folder child count: " +
folder.list().length);
>> }
>>
>>yields:
>>
>>folder child count: 0
>
>
> This is by design. Hidden files are hidden so ... there hidden. You
> will need to use SmbFileFilter to indicate all file types should be
> returned.
Well, it's another incompatibility to java.io.File. If this is by
design, please note it in the documentation.
Regards, Julian
--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
More information about the jcifs
mailing list