[ 
https://issues.apache.org/jira/browse/VFS-497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary Gregory updated VFS-497:
-----------------------------
    Description: 
Apache Commons IO has a similar file filter concept as VFS and provides ~20 
filter implementations. VFS misses such implementations.

Therefore I ported the IO filters, created & updated unit tests and now I want 
to contribute that code to VFS.

The code is currently available on GitHub:
 [https://github.com/fuinorg/commons-vfs2-filters]
----
New filters are:
 * org.apache.commons.vfs2.filter.AgeFileFilter
 * org.apache.commons.vfs2.filter.AndFileFilter
 * org.apache.commons.vfs2.filter.CanReadFileFilter
 * org.apache.commons.vfs2.filter.CanWriteFileFilter
 * org.apache.commons.vfs2.filter.ConditionalFileFilter
 * org.apache.commons.vfs2.filter.DirectoryFileFilter
 * org.apache.commons.vfs2.filter.EmptyFileFilter
 * org.apache.commons.vfs2.filter.FalseFileFilter
 * org.apache.commons.vfs2.filter.FileFileFilter
 * org.apache.commons.vfs2.filter.HiddenFileFilter
 * org.apache.commons.vfs2.filter.NameFileFilter
 * org.apache.commons.vfs2.filter.NotFileFilter
 * org.apache.commons.vfs2.filter.OrFileFilter
 * org.apache.commons.vfs2.filter.PrefixFileFilter
 * org.apache.commons.vfs2.filter.RegexFileFilter
 * org.apache.commons.vfs2.filter.SizeFileFilter
 * org.apache.commons.vfs2.filter.SizeRangeFileFilter
 * org.apache.commons.vfs2.filter.SuffixFileFilter
 * org.apache.commons.vfs2.filter.TrueFileFilter
 * org.apache.commons.vfs2.filter.WildcardFileFilter

As part of this change the method 
{{org.apache.commons.vfs2.FileFilter.accept(FileSelectInfo)}} now throws a 
{{FileSystemException}}. This change is _binary_ compatible but is not _source_ 
compatible.

  was:
Apache Commons IO has a similar file filter concept as VFS and provides ~20 
filter implementations. VFS misses such implementations.

Therefore I ported the IO filters, created & updated unit tests and now I want 
to contribute that code to VFS.

The code is currently available on GitHub:
 [https://github.com/fuinorg/commons-vfs2-filters]
----
New filters are:
 * org.apache.commons.vfs2.filter.AgeFileFilter
 * org.apache.commons.vfs2.filter.AndFileFilter
 * org.apache.commons.vfs2.filter.CanReadFileFilter
 * org.apache.commons.vfs2.filter.CanWriteFileFilter
 * org.apache.commons.vfs2.filter.ConditionalFileFilter
 * org.apache.commons.vfs2.filter.DirectoryFileFilter
 * org.apache.commons.vfs2.filter.EmptyFileFilter
 * org.apache.commons.vfs2.filter.FalseFileFilter
 * org.apache.commons.vfs2.filter.FileFileFilter
 * org.apache.commons.vfs2.filter.HiddenFileFilter
 * org.apache.commons.vfs2.filter.NameFileFilter
 * org.apache.commons.vfs2.filter.NotFileFilter
 * org.apache.commons.vfs2.filter.OrFileFilter
 * org.apache.commons.vfs2.filter.PrefixFileFilter
 * org.apache.commons.vfs2.filter.RegexFileFilter
 * org.apache.commons.vfs2.filter.SizeFileFilter
 * org.apache.commons.vfs2.filter.SizeRangeFileFilter
 * org.apache.commons.vfs2.filter.SuffixFileFilter
 * org.apache.commons.vfs2.filter.TrueFileFilter
 * org.apache.commons.vfs2.filter.WildcardFileFilter


> Port file filters from Apache Commons IO to VFS
> -----------------------------------------------
>
>                 Key: VFS-497
>                 URL: https://issues.apache.org/jira/browse/VFS-497
>             Project: Commons VFS
>          Issue Type: Improvement
>            Reporter: Michael Schnell
>            Priority: Major
>              Labels: patch
>             Fix For: 2.4
>
>   Original Estimate: 1h
>          Time Spent: 10m
>  Remaining Estimate: 50m
>
> Apache Commons IO has a similar file filter concept as VFS and provides ~20 
> filter implementations. VFS misses such implementations.
> Therefore I ported the IO filters, created & updated unit tests and now I 
> want to contribute that code to VFS.
> The code is currently available on GitHub:
>  [https://github.com/fuinorg/commons-vfs2-filters]
> ----
> New filters are:
>  * org.apache.commons.vfs2.filter.AgeFileFilter
>  * org.apache.commons.vfs2.filter.AndFileFilter
>  * org.apache.commons.vfs2.filter.CanReadFileFilter
>  * org.apache.commons.vfs2.filter.CanWriteFileFilter
>  * org.apache.commons.vfs2.filter.ConditionalFileFilter
>  * org.apache.commons.vfs2.filter.DirectoryFileFilter
>  * org.apache.commons.vfs2.filter.EmptyFileFilter
>  * org.apache.commons.vfs2.filter.FalseFileFilter
>  * org.apache.commons.vfs2.filter.FileFileFilter
>  * org.apache.commons.vfs2.filter.HiddenFileFilter
>  * org.apache.commons.vfs2.filter.NameFileFilter
>  * org.apache.commons.vfs2.filter.NotFileFilter
>  * org.apache.commons.vfs2.filter.OrFileFilter
>  * org.apache.commons.vfs2.filter.PrefixFileFilter
>  * org.apache.commons.vfs2.filter.RegexFileFilter
>  * org.apache.commons.vfs2.filter.SizeFileFilter
>  * org.apache.commons.vfs2.filter.SizeRangeFileFilter
>  * org.apache.commons.vfs2.filter.SuffixFileFilter
>  * org.apache.commons.vfs2.filter.TrueFileFilter
>  * org.apache.commons.vfs2.filter.WildcardFileFilter
> As part of this change the method 
> {{org.apache.commons.vfs2.FileFilter.accept(FileSelectInfo)}} now throws a 
> {{FileSystemException}}. This change is _binary_ compatible but is not 
> _source_ compatible.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to