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.
Attachments
Issue Links
- links to