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

Port file filters from Apache Commons IO to VFS

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4
    • Labels:

      Description

      Apache Commons IO has a similar file filter concept as VFS and provides ~20 filter implementations. VFS misses such implementations.

      Therefore I ported the IO filters, created & updated unit tests and now I want to contribute that code to VFS.

      The code is currently available on GitHub:
      https://github.com/fuinorg/commons-vfs2-filters


      New filters are:

      • org.apache.commons.vfs2.filter.AgeFileFilter
      • org.apache.commons.vfs2.filter.AndFileFilter
      • org.apache.commons.vfs2.filter.CanReadFileFilter
      • org.apache.commons.vfs2.filter.CanWriteFileFilter
      • org.apache.commons.vfs2.filter.ConditionalFileFilter
      • org.apache.commons.vfs2.filter.DirectoryFileFilter
      • org.apache.commons.vfs2.filter.EmptyFileFilter
      • org.apache.commons.vfs2.filter.FalseFileFilter
      • org.apache.commons.vfs2.filter.FileFileFilter
      • org.apache.commons.vfs2.filter.HiddenFileFilter
      • org.apache.commons.vfs2.filter.NameFileFilter
      • org.apache.commons.vfs2.filter.NotFileFilter
      • org.apache.commons.vfs2.filter.OrFileFilter
      • org.apache.commons.vfs2.filter.PrefixFileFilter
      • org.apache.commons.vfs2.filter.RegexFileFilter
      • org.apache.commons.vfs2.filter.SizeFileFilter
      • org.apache.commons.vfs2.filter.SizeRangeFileFilter
      • org.apache.commons.vfs2.filter.SuffixFileFilter
      • org.apache.commons.vfs2.filter.TrueFileFilter
      • org.apache.commons.vfs2.filter.WildcardFileFilter

      As part of this change the method org.apache.commons.vfs2.FileFilter.accept(FileSelectInfo) now throws a FileSystemException. This change is binary compatible but is not source compatible.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                michael-schnell Michael Schnell
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Time Spent - 10m Remaining Estimate - 50m
                  50m
                  Logged:
                  Time Spent - 10m Remaining Estimate - 50m
                  10m