protected function createDirectoryIfNotExists() { if (!is_dir($this->getPath())) { $this->files->makeDirectory($this->getPath(), 0755, true); } }