$filesfileInPath()

Is given $file name in given $path name? (aka: is $file a subdirectory somewhere within $path)

This is purely for string comparison purposes, it does not check if file/path actually exists. Note that if $file and $path are identical, this method returns false.

Usage

$bool = $files->fileInPath(string $file, string $path);

Arguments

NameType(s)Description
$filestring

May be a file or a directory

$pathstring

Return value

bool


$files methods and properties

API reference based on ProcessWire core version 3.0.251