FindFilesOption uses ConstantsTrait
Enumeration class that defines various options to use in the fileFiles function.
Tags
Table of Contents
Constants
- FILTER = 'filter'
- A function to map or transform each SplFileInfo result.
- FOLLOW_LINKS = 'followLinks'
- Whether to follow symbolic links (default: false).
- INCLUDE_DOTS = 'includeDots'
- Whether to include dot files (default: false).
- MODE = 'mode'
- Filter by type: 'files', 'dirs', or 'both' (default: 'files').
- ORDER = 'order'
- Sort order: 'asc' (default) or 'desc'.
- PATTERN = 'pattern'
- A glob pattern, regex, or list of patterns to match file names.
- RECURSIVE = 'recursive'
- Whether to search recursively (default: false).
- SORT = 'sort'
- A sort option, eg: callback, predefined string, or array of keys.
Constants
FILTER
A function to map or transform each SplFileInfo result.
public
mixed
FILTER
= 'filter'
FOLLOW_LINKS
Whether to follow symbolic links (default: false).
public
mixed
FOLLOW_LINKS
= 'followLinks'
INCLUDE_DOTS
Whether to include dot files (default: false).
public
mixed
INCLUDE_DOTS
= 'includeDots'
MODE
Filter by type: 'files', 'dirs', or 'both' (default: 'files').
public
mixed
MODE
= 'mode'
ORDER
Sort order: 'asc' (default) or 'desc'.
public
mixed
ORDER
= 'order'
PATTERN
A glob pattern, regex, or list of patterns to match file names.
public
mixed
PATTERN
= 'pattern'
RECURSIVE
Whether to search recursively (default: false).
public
mixed
RECURSIVE
= 'recursive'
SORT
A sort option, eg: callback, predefined string, or array of keys.
public
mixed
SORT
= 'sort'