TemporaryDirectories
in package
Table of Contents
Properties
- $directories : array<string|int, mixed>
- Array of all directories
- $root : string
- Root of the temporary directories.
Methods
- __construct() : mixed
- Sets the root and removes the trailing slash.
- create() : string
- Returns the full path a of new temporary directory.
- deleteAll() : void
- Loop through all directories and delete them.
Properties
$directories
Array of all directories
private
array<string|int, mixed>
$directories
= []
$root
Root of the temporary directories.
private
string
$root
Methods
__construct()
Sets the root and removes the trailing slash.
public
__construct(string $root) : mixed
Parameters
- $root : string
create()
Returns the full path a of new temporary directory.
public
create() : string
Return values
stringdeleteAll()
Loop through all directories and delete them.
public
deleteAll() : void