class VolatileDirectory (View source)

Properties

protected Filesystem $filesystem

The used Filesystem instance.

protected string $path

The path of this volatile directory.

Methods

__construct(Filesystem $filesystem, string $parentDirectory)

Initializes the instance.

Filesystem
getFilesystem()

Get the used Filesystem instance.

string
getPath()

Get the absolute path of this volatile directory (always with '/' as directory separator, without the trailing '/').

__destruct()

Clear and delete this volatile directory.

Details

__construct(Filesystem $filesystem, string $parentDirectory)

Initializes the instance.

Parameters

Filesystem $filesystem

the Filesystem instance to use

string $parentDirectory

the parent directory that will contain this volatile directory

Exceptions

Exception

Filesystem getFilesystem()

Get the used Filesystem instance.

Return Value

Filesystem

string getPath()

Get the absolute path of this volatile directory (always with '/' as directory separator, without the trailing '/').

Return Value

string

__destruct()

Clear and delete this volatile directory.