|
@@ -24,6 +24,10 @@ class TemporaryStorage
|
|
|
|
|
|
public function __construct($secret, $directory)
|
|
public function __construct($secret, $directory)
|
|
{
|
|
{
|
|
|
|
+ if (!file_exists($directory)) {
|
|
|
|
+ mkdir($directory, 0777, true);
|
|
|
|
+ }
|
|
|
|
+
|
|
$this->directory = realpath($directory);
|
|
$this->directory = realpath($directory);
|
|
$this->secret = $secret;
|
|
$this->secret = $secret;
|
|
}
|
|
}
|