saker.build Documentation TaskDoc JavaDoc Packages
public class FileOnlyIgnoreCaseExtensionDirectoryVisitPredicate extends IgnoreCaseExtensionDirectoryVisitPredicate
Same as IgnoreCaseExtensionDirectoryVisitPredicate, but doesn't accept directories as the result.
Constructors
public
public
Creates a new visitor for the given extension.
Methods
public boolean
Determines if the directory with the given name should be visited by the consumer.
public boolean visitDirectory(String name, SakerDirectory directory)
Overridden from: DirectoryVisitPredicate
Determines if the directory with the given name should be visited by the consumer.

For synchronization, returning true this means that the directory should be synchronized:
If DirectoryVisitPredicate.directoryVisitor(String, SakerDirectory) returns null, then only the directory will be created at the path.
If DirectoryVisitPredicate.directoryVisitor(String, SakerDirectory) returns non-null, then the synchronization of the subdirectory with its children will proceed without calling this method.

For file collection, returning true will cause the parameter to be part of the result set.

nameThe name of the directory.
directoryThe directory itself.
true if the directory should be visited.