private function ensureRootDirectoryAvailable() { if (!$this->Filesystem->exists(public_path() . '/' . $this->config['root-dir'])) { $this->Filesystem->makeDirectory(public_path() . '/' . $this->config['root-dir'], 0775); } return true; }