Class DeletedFileFilter

java.lang.Object
hudson.plugins.jobConfigHistory.DeletedFileFilter
All Implemented Interfaces:
FileFilter

public class DeletedFileFilter extends Object implements FileFilter
A filter to return only those directories of a file listing that represent deleted jobs history directories, the names of which contain DELETED_MARKER.
Author:
Mirko Friedenhagen
  • Field Details

  • Constructor Details

    • DeletedFileFilter

      public DeletedFileFilter()
  • Method Details

    • accepts

      public static boolean accepts(File file)
      Is this item deleted?
      Parameters:
      file - to inspect
      Returns:
      true when file has the special deleted mark.
    • accepts

      public static boolean accepts(String fileName)
      Is this item deleted?
      Parameters:
      fileName - to inspect
      Returns:
      true when fileName has the special deleted mark.
    • accept

      public boolean accept(File file)
      Specified by:
      accept in interface FileFilter