FileSelector that delegates all work to java.io.FilenameFilter --------------------------------------------------------------
Key: VFS-170 URL: https://issues.apache.org/jira/browse/VFS-170 Project: Commons VFS Issue Type: New Feature Affects Versions: 1.0 Reporter: Vasily Ivanov Priority: Minor See file attached. This will allow to use one-liners like this: import org.apache.commons.io.IOCase; import org.apache.commons.io.filefilter.WildcardFileFilter; ... FileObject[] configFileObjects = dirObject.findFiles(new FilenameFilterFileSelector(new WildcardFileFilter("*config*.xml", IOCase.SYSTEM))) To name a few FilenameFilters from Commons IO that can be used here: AndFileFilter DelegateFileFilter NameFileFilter NotFileFilter OrFileFilter PrefixFileFilter SuffixFileFilter WildcardFileFilter FalseFileFilter TrueFileFilter Very useful. :-) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]