WireTempDir::get()

Returns a temporary directory (path)

Usage

// basic usage
$string = $wireTempDir->get();

// usage with all arguments
$string = $wireTempDir->get(string $id = '');

Arguments

NameType(s)Description
$id (optional)string

Optional identifier to use Default:autogenerate

Return value

string

Returns path

Exceptions

Method can throw exceptions on error:

  • WireException - If can't create temporary dir


WireTempDir methods and properties

API reference based on ProcessWire core version 3.0.252