Directory
in component
Services directory management functions.
Table of Contents
Methods
- checkDirectory() : mixed
- Makes sure that the directory exists. If it does not exist, the function tries to create it.
- clearDirectory() : mixed
- deleteDirectory() : mixed
- _clearDirectory() : mixed
Methods
checkDirectory()
Makes sure that the directory exists. If it does not exist, the function tries to create it.
public
static checkDirectory(mixed $file) : mixed
on error - an exception will occur
Parameters
- $file : mixed
clearDirectory()
public
static clearDirectory(mixed $path[, mixed $exclude = array() ]) : mixed
Parameters
- $path : mixed
- $exclude : mixed = array()
deleteDirectory()
public
static deleteDirectory(mixed $path) : mixed
Parameters
- $path : mixed
_clearDirectory()
protected
static _clearDirectory(mixed $path[, mixed $exclude = array() ]) : mixed
Parameters
- $path : mixed
- $exclude : mixed = array()