lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shai Erera (JIRA)" <>
Subject [jira] [Resolved] (LUCENE-3132) Use FileFilter instead of FileNameFilter in FSDirectory.listAll
Date Sun, 22 May 2011 08:00:47 GMT


Shai Erera resolved LUCENE-3132.

       Resolution: Invalid
    Fix Version/s:     (was: 3.2)
                       (was: 4.0)
    Lucene Fields: [New]  (was: [Patch Available, New])

Sorry, hit the 'create' button instead getting out the "Issue create process". FilenameFilter
is required because we return the file names (we call File.list() and not File.listFiles()).

> Use FileFilter instead of FileNameFilter in FSDirectory.listAll
> ---------------------------------------------------------------
>                 Key: LUCENE-3132
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Shai Erera
>            Assignee: Shai Erera
>            Priority: Trivial
> FSDirectory.listAll() uses FileNameFilter, but all it does is check whether the File
+ name given denotes a directory. For that, it does new File(dir, file).isDirectory(). If
we use FileFilter, new File() won't be necessary. This is a trivial thing, I'll post a patch

This message is automatically generated by JIRA.
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message