Example #1
0
 private static IOFileFilter setUpEffectiveDirFilter(IOFileFilter dirFilter) {
   return dirFilter == null
       ? FalseFileFilter.INSTANCE
       : FileFilterUtils.and(new IOFileFilter[] {dirFilter, DirectoryFileFilter.INSTANCE});
 }
Example #2
0
 private static IOFileFilter setUpEffectiveFileFilter(IOFileFilter fileFilter) {
   return FileFilterUtils.and(
       new IOFileFilter[] {
         fileFilter, FileFilterUtils.notFileFilter(DirectoryFileFilter.INSTANCE)
       });
 }