[jcifs] Hidden Files from listFiles()?

Michael B Allen mba2000 at ioplex.com
Wed Nov 5 06:57:23 EST 2003


>
>> > I would tend toward leaving hidden files hidden.  Even in Unix you
>> have to
>> > specifically ask to see the hidden files.  My gut reaction is that
>> this is
>> > the path of least surprise.
>>
>> Ok, well I could go either way with this and it's trivial to do it
>> either
>> way. One more opinion would close the issue...
>
> I would lean toward not listing hidden files unless you request them.
> Which
> behaviour is backward compatible again?  i.e. does a plain
> smbfile.listFiles()
> include hidden files currently, or no?

Currently jCIFS lists ALL files regardless of their attributes including
system files and hidden files.

Mike

-- 
A program should be written to  model the concepts of the task it
performs rather than the physical world or a process because this
maximizes the  potential for it  to be applied  to tasks that are
conceptually similar and, more  important, to tasks that have not
yet been conceived.



More information about the jcifs mailing list