@@ -25,6 +25,6 @@ class FileNotFoundException extends FileException
*/
public function __construct($path)
{
- parent::__construct(sprintf('The file %s does not exist', $path));
+ parent::__construct(sprintf('The file "%s" does not exist', $path));
}
@@ -24,6 +24,10 @@ class TemporaryStorage
public function __construct($secret, $directory)
+ if (!file_exists($directory)) {
+ mkdir($directory, 0777, true);
+ }
+
$this->directory = realpath($directory);
$this->secret = $secret;