(string $folderSan, string $relativeSubDir)
| 517 | } |
| 518 | |
| 519 | private static function buildStorageDir(string $folderSan, string $relativeSubDir): string |
| 520 | { |
| 521 | $base = rtrim(self::uploadRoot(), '/\\'); |
| 522 | $path = $base; |
| 523 | if ($folderSan !== '') { |
| 524 | $path .= DIRECTORY_SEPARATOR . str_replace('/', DIRECTORY_SEPARATOR, $folderSan); |
| 525 | } |
| 526 | if ($relativeSubDir !== '') { |
| 527 | $path .= DIRECTORY_SEPARATOR . str_replace('/', DIRECTORY_SEPARATOR, $relativeSubDir); |
| 528 | } |
| 529 | return $path; |
| 530 | } |
| 531 | |
| 532 | private static function buildStoragePath(string $folderSan, string $relativeSubDir, string $fileName): string |
| 533 | { |
no test coverage detected