commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Lewis <...@ascii27.net>
Subject Re: [VFS] getChildren()
Date Fri, 18 Feb 2005 15:21:55 GMT
What about supporting both FileSelector and FileFilter, with the 
traverseDescendents() implicitly false on FileFilter to mirror 
java.io.File behavior?

Mario Ivankovits wrote:

> Edgar Poce wrote:
>
>> thanks for the trick. I'll use it but I think
>>
>> FileObject[] getChildren(FileSelector selector) throws
>>  FileSystemException
>>
>> should be added. In java.io.File you can find listFiles(FileFilter 
>> filter). I think VFS should have most of the java.io.File features 
>> plus the advantage of a single api for multiple providers.
>
>
> Due to the nature of the FileSelector to handle the decision to 
> traverse the tree it isnt possible to create a getChildren without 
> breaking the meaning of the FileSelector interface - concret the 
> traverseDescendents() function.
> But for sure - having a e.g. ChildrenSelector(FileObject parent, 
> FileType type) would be nice - i will look at it.
>
> Ciao,
> Mario
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message