public function buildPath($key, $directory, $create) { $this->ensureDirectoryExists($directory, $create); return $this->normalizeDirectoryPath($directory . '/' . $key); }