Whether the file exists and can be read
The absolute path
The absolute path, normalised
The path, as found from the search path
The extension, without the leading dot, or an empty string
The path relative to the search path
The stats, as returned by fs.stat
The stats, as returned by fs.statSync
Whether this is a directory, or a link to one
Whether this is a directory, or a link to one
Whether the file can be executed
Whether this is a regular file, or a link to one
Whether this is a regular file, or a link to one
Whether this is hidden: its name, or for a directory any in its path, begins with a dot
Whether this is hidden: its name, or for a directory any in its path, begins with a dot
Whether the path, relative to the search path, matches a glob pattern
Whether the file can be read
Whether this is a symbolic link
Whether this is a symbolic link
Whether the file can be written to
When the file was last accessed
When the file was last accessed
When the file's status, such as its permissions, last changed
When the file's status, such as its permissions, last changed
When the contents were last modified
When the contents were last modified
The size in bytes
The size in bytes
A read-only view of a file found by a search, as passed to predicates such as applyFilter. It has no methods that change the file system.
Remarks
Predicates may be called ahead of the matches being returned, at the same time as each other, and on files that are never returned, for example when a loop over FileHound.iterate is left early. So a predicate should have no side effects.
A file's stats are fetched once, then shared by every predicate and by FileHound.includeFileStats.