$page->hasFilesPath() method

Does the page have a files path for storing files?

This will only check if files path exists, it will not create the path if it’s not already present.

Available since version 3.0.138. Earlier versions must use the more verbose PagefilesManager::hasPath($page)

Usage

$bool = $page->hasFilesPath();

Return value

bool


$page methods and properties

API reference based on ProcessWire core version 3.0.236

I just love the easy and intuitive ProcessWire API. ProcessWire rocks!” —Jens Martsch, Web developer