diff --git a/src/FilesystemOptions.php b/src/FilesystemOptions.php index e849b8d..1a5312d 100644 --- a/src/FilesystemOptions.php +++ b/src/FilesystemOptions.php @@ -112,9 +112,11 @@ public function __construct($options = null) $this->dirPermission = false; } - $this->setCacheDir(null); - parent::__construct($options); + + if (null === $this->cacheDir) { + $this->setCacheDir(null); + } } /**