$prefix
$prefix : string
Prefixed to all cache names.
File system cache handler
deleteFiles(string $path, boolean $del_dir = false, boolean $htdocs = false, integer $_level) : boolean
Delete Files
Deletes all files contained in the supplied directory path. Files must be writable or owned by the system in order to be deleted. If the second parameter is set to TRUE, any directories contained within the supplied base directory will be nuked as well.
string | $path | File path |
boolean | $del_dir | Whether to delete any directories found in the path |
boolean | $htdocs | Whether to skip deleting .htaccess and index page files |
integer | $_level | Current directory depth level (default: 0; internal use only) |
getDirFileInfo(string $source_dir, boolean $top_level_only = true, boolean $_recursion = false) : array|false
Get Directory File Information
Reads the specified directory and builds an array containing the filenames, filesize, dates, and permissions
Any sub-folders contained within the specified path are read as well.
string | $source_dir | Path to source |
boolean | $top_level_only | Look only at the top level directory specified? |
boolean | $_recursion | Internal variable to determine recursion status - do not use in calls |
getFileInfo(string $file, mixed $returned_values = array('name', 'server_path', 'size', 'date')) : array|false
Get File Info
Given a file and path, returns the name, path, size, date modified Second parameter allows you to explicitly declare what information you want returned Options are: name, server_path, size, date, readable, writable, executable, fileperms Returns FALSE if the file cannot be found.
string | $file | Path to file |
mixed | $returned_values | Array or comma separated string of information returned |