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