TwistPHP Documentation

cleanDirectory

File path: dist/twist/Core/Utilities/Cache.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

cleanDirectoryCleans out a directory and all its sub directories

Parameters

Name Type Description
$strDirectorystringn/a
$intCurrentTimeintegern/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strDirectory 'foo';
$intCurrentTime 124;

//Call the function cleanDirectory with the example vars
Twist::Cache() -> cleanDirectory($strDirectory$intCurrentTime);