diff --git a/src/DataBox.php b/src/DataBox.php index 54b381b..36c94d7 100644 --- a/src/DataBox.php +++ b/src/DataBox.php @@ -67,6 +67,8 @@ public function __construct($directory = null) { if ($directory === null) { $this->directory = sys_get_temp_dir() . '/DataBox'; + } else { + $this->directory = $directory; } $this->simpleApi = new DataBoxSimpleApi($this); }