Méthode |
Description |
|
__construct ( string $basePath = '.temp/' ) |
HardDisk constructor |
|
clean ( ) |
Deletes the temporary directory |
|
exists ( string $path ) : boolean |
Checks whether a temporary entry does exist |
|
file ( string $path ) : array |
Returns a temporary entry as an array |
|
getHashFile ( string $algorithm, string $path, boolean $cache = false ) : string |
This function does not perform operations in the temporary
directory but it caches the results to avoid reprocessing |
|
initialize ( ) |
Initialize the filesystem |
|
isInitialized ( ) : boolean |
Checks if the filesystem is initialized |
|
makeDirectory ( string $path ) : boolean |
Creates a directory inside the temporary container |
|
modificationTime ( string $path ) : boolean |
Returns the modification time of a temporary entry |
|
read ( string $path ) |
Writes data from a temporary entry |
|
requireFile ( string $path ) : mixed |
Requires a file from the temporary directory |
|
system ( string $command, string $descriptor, string $destination ) |
Executes a command and saves the result into a temporary entry |
|
write ( string $path, string $data ) |
Writes data into a temporary entry |
|