public abstract class PathFilter extends java.lang.Object implements IPicApportGroovyAddon
Constructor and Description |
---|
PathFilter() |
Modifier and Type | Method and Description |
---|---|
void |
beforeDirectoryScan(IAddonContext addonContext,
java.io.File directory)
This method is called immediately before a directory will be scanned for photos.
|
boolean |
shouldAddDirectory(IAddonContext addonContext,
java.io.File directory)
Override this method to control whether a directory should be searched for photos or not
author Eric 01.04.2020
|
boolean |
shouldAddFile(IAddonContext addonContext,
java.io.File file)
Override this method to control whether a file should be included in the PicApport database or not.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init
public void beforeDirectoryScan(IAddonContext addonContext, java.io.File directory)
addonContext
- Add-on contextdirectory
- Directorypublic boolean shouldAddDirectory(IAddonContext addonContext, java.io.File directory)
addonContext
- Add-on contextdirectory
- Directorypublic boolean shouldAddFile(IAddonContext addonContext, java.io.File file)
addonContext
- Add-on contextfile
- The file that should be checked