TempDir
Less than 1 minute
TempDir
Create a temporary directory.
This class will create and manage a temporary directory that is stored in the application runtime directory in a subdirectory called 'temp'. The directory is not stateful, meaning it can only be used for the lifetime of the execution and once the file object falls out of scope it, and all of it's contents, will be deleted automatically.
Methods
__construct
Temporary directory constructor.
public __construct({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$name | NULL | An option name to give the temp directory. Leaving this null will auto-generate a name. |
__destruct
Temporary directory destructor.
public __destruct({Array})
This method will clean up the directory on disk when the object falls out of scope. This includes deleting anything that is contained in the directory.
Generated by Hazaar API Doc Generator