Remove files and directories in /site/assets/backups/PagesExportImport/ that are older than $maxAge
Usage
// basic usage
$int = $pagesExportImport->cleanupFiles();
// usage with all arguments
$int = $pagesExportImport->cleanupFiles(int $maxAge = 3600);
Arguments
Name | Type(s) | Description |
---|---|---|
maxAge (optional) | int | Maximum age in seconds |
Return value
int
Number of files/dirs removed
PagesExportImport methods and properties
API reference based on ProcessWire core version 3.0.236