Finds files from the file system. It will look through the base directory for the file

package Owl
author Dave Widmer

 Methods

Creates a new file system file lookup. You will need to supply the base path.

__construct(string $path) 

Parameters

$path

string

The full base path.

Given the filename, attempts to find a file in the filesystem.

find(string $file) : string

Parameters

$file

string

The name of the file

Exceptions

\Owl\Exception When a file can't be found

Returns

stringThe full file path to the file

Gets the base path.

getPath() : string

Returns

string

Sets the base path for file lookup.

setPath(string $path) : \Owl\Finder\FileSystem

Parameters

$path

string

The full server path to use as a starting point

Returns

 Properties

 

The base path to look for files

$path : string