Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-367

Add APIs FileObject isFile(), FileObject isFolder(), and FileName isFile()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0, 2.0
    • 2.1
    • None

    Description

      As a call site, I want to say fileObject.isFile(), not FileType.FILE.equals(fileObject.getType()) or fileObject.getType() == FileType.FILE

      It turns out this equals()/== pattern is repeated internally quit a bit. Refactor that to use the new API.

      Same idea for FileName isFile (but there are fewer call sites to refactor.)

      Attachments

        Activity

          People

            ggregory Gary D. Gregory
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: