NAME

App::GitFind::Entry - Abstract base class representing a file or directory

SYNOPSIS

This represents a single file or directory being checked against an expression. Concrete subclasses implement various types of entries.

MEMBERS

searchbase

Required Path::Class::Dir. Results will be reported relative to this directory.

METHODS

isdir

Truthy if it's a directory; falsy otherwise. Must be overriden by subclasses.

name

Basename of this entry. Must be overriden by subclasses. TODO May be a string or a Path::Class instance?

path

Full path of the entry with respect to "searchbase". Must be overriden by subclasses. May be a string or a Path::Class instance?

prune

If this entry represents a directory, mark its children as not to be traversed.

If this entry represents a file, no effect.

BUILD

Enforce abstractness, and the requirement to provide a searchbase.