ProCacheFiles::files method

2-step rmdir: removes a path by first renaming it and then removing it

Unlike wireRmdir (function), this one renames the directory first so that they can't be displayed by Apache or written by PW while in the process of being removed.

Usage

$bool = $procache->files->rmdir2(string $path, bool $recursive);

Arguments

NameType(s)Description
$pathstring
$recursivebool

Return value

bool


$procache->files methods and properties

API reference based on ProcessWire core version 3.0.252