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
Name | Type(s) | Description |
---|---|---|
file | string | May be a file or a directory |
path | string |
Return value
bool
API reference based on ProcessWire core version 3.0.236