Call this with 'false' to prevent temp dir from being removed automatically when object is destructed
If you do this, then you accept responsibility for removing the directory by calling $tempDir->remove(); If you do not remove it yourself, WireTempDir will remove as part of the daily maintenance.
Usage
// basic usage
$wireTempDir->setRemove();
// usage with all arguments
$wireTempDir->setRemove(bool $remove = true);
Arguments
Name | Type(s) | Description |
---|---|---|
remove (optional) | bool |
Return value
$this
Object instance it was called from (method supports fluent interface).
WireTempDir methods and properties
API reference based on ProcessWire core version 3.0.236