/** * Create the directory to house the published files if needed. * * @param string $directory */ protected function createParentDirectory($directory) { if (!$this->files->isDirectory($directory)) { $this->files->makeDirectory($directory, 0755, true); } }