Diviner

Class FileFinder

Definedsrc/filesystem/FileFinder.php:19
GroupFilesystem

Find files on disk matching criteria, like the 'find' system utility. Use of this class is straightforward:

// Find PHP files in /tmp
$files = id(new FileFinder('/tmp'))
  ->withType('f')
  ->withSuffix('php')
  ->find();

Tasks

Creating a File Query

Configuring File Queries

Executing the File Query

Internal

Methods

public this __construct($root)

parametersstring$rootRoot directory to find files beneath.
returnthis

Create a new FileFinder.

public excludePath($path)

parameterswild$path
returnwild
This method is not documented.

public find()

returnwild
This method is not documented.

private generateList($flag, array $items)

parameterswild$flag
array$items
returnwild
This method is not documented.

private getFiles($dir)

parameterswild$dir
returnwild
This method is not documented.

public setForceMode($mode)

parametersstring$modeEither "php", "shell", or the empty string.
returnwild
This method is not documented.

public setGenerateChecksums($generate)

parameterswild$generate
returnwild
This method is not documented.

public validateFile($file)

parameterswild$file
returnwild
This method is not documented.

public withFollowSymlinks($follow)

parameterswild$follow
returnwild
This method is not documented.

public withPath($path)

parameterswild$path
returnwild
This method is not documented.

public withSuffix($suffix)

parameterswild$suffix
returnwild
This method is not documented.

public withType($type)

parameterswild$type
returnwild
This method is not documented.