Oihana PHP

FindFilesOption uses ConstantsTrait

Enumeration class that defines various options to use in the fileFiles function.

Tags
author

Marc Alcaraz (ekameleon)

since
1.0.0
see
findFiles()

Table of Contents

Constants

FILTER  : string = 'filter'
A function to map or transform each SplFileInfo result.
FOLLOW_LINKS  : string = 'followLinks'
Whether to follow symbolic links (default: false).
INCLUDE_DOTS  : string = 'includeDots'
Whether to include dot files (default: false).
MODE  : string = 'mode'
Filter by type: 'files', 'dirs', or 'both' (default: 'files').
ORDER  : string = 'order'
Sort order: 'asc' (default) or 'desc'.
PATTERN  : string = 'pattern'
A glob pattern, regex, or list of patterns to match file names.
RECURSIVE  : string = 'recursive'
Whether to search recursively (default: false).
SORT  : string = 'sort'
A sort option, eg: callback, predefined string, or array of keys.

Constants

FILTER

A function to map or transform each SplFileInfo result.

public string FILTER = 'filter'

Whether to follow symbolic links (default: false).

public string FOLLOW_LINKS = 'followLinks'

INCLUDE_DOTS

Whether to include dot files (default: false).

public string INCLUDE_DOTS = 'includeDots'

MODE

Filter by type: 'files', 'dirs', or 'both' (default: 'files').

public string MODE = 'mode'

ORDER

Sort order: 'asc' (default) or 'desc'.

public string ORDER = 'order'

PATTERN

A glob pattern, regex, or list of patterns to match file names.

public string PATTERN = 'pattern'

RECURSIVE

Whether to search recursively (default: false).

public string RECURSIVE = 'recursive'

SORT

A sort option, eg: callback, predefined string, or array of keys.

public string SORT = 'sort'
On this page

Search results