Method |
Description |
|
__construct ( ) |
Constructor. |
|
addVCSPattern ( string | string[] $pattern ) |
Adds VCS patterns. |
|
append ( mixed $iterator ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Appends an existing set of files/directories to the finder. |
|
contains ( string $pattern ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Adds tests that file contents must match. |
|
count ( ) : integer |
Counts all the results collected by the iterators. |
|
create ( ) : Finder |
Creates a new Finder. |
|
date ( string $date ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Adds tests for file dates (last modified). |
|
depth ( string | integer $level ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Adds tests for the directory depth. |
|
directories ( ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Restricts the matching to directories only. |
|
exclude ( string | array $dirs ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Excludes directories. |
|
files ( ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Restricts the matching to files only. |
|
filter ( Closure $closure ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Filters the iterator with an anonymous function. |
|
followLinks ( ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Forces the following of symlinks. |
|
getIterator ( ) : Iterator | Symfony\Component\Finder\SplFileInfo[] |
Returns an Iterator for the current Finder configuration. |
|
ignoreDotFiles ( boolean $ignoreDotFiles ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Excludes "hidden" directories and files (starting with a dot). |
|
ignoreUnreadableDirs ( boolean $ignore = true ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Tells finder to ignore unreadable directories. |
|
ignoreVCS ( boolean $ignoreVCS ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Forces the finder to ignore version control directories. |
|
in ( string | array $dirs ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Searches files and directories which match defined rules. |
|
name ( string $pattern ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Adds rules that files must match. |
|
notContains ( string $pattern ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Adds tests that file contents must not match. |
|
notName ( string $pattern ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Adds rules that files must not match. |
|
notPath ( string $pattern ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Adds rules that filenames must not match. |
|
path ( string $pattern ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Adds rules that filenames must match. |
|
size ( string | integer $size ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Adds tests for file sizes. |
|
sort ( Closure $closure ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Sorts files and directories by an anonymous function. |
|
sortByAccessedTime ( ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Sorts files and directories by the last accessed time. |
|
sortByChangedTime ( ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Sorts files and directories by the last inode changed time. |
|
sortByModifiedTime ( ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Sorts files and directories by the last modified time. |
|
sortByName ( ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Sorts files and directories by name. |
|
sortByType ( ) : Finder | Symfony\Component\Finder\SplFileInfo[] |
Sorts files and directories by type (directories before files), then by name. |
|