MCPcopy Create free account
hub / github.com/error311/FileRise / buildStorageDir

Method buildStorageDir

src/FileRise/Domain/UploadModel.php:519–530  ·  view source on GitHub ↗
(string $folderSan, string $relativeSubDir)

Source from the content-addressed store, hash-verified

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 {

Callers 2

buildStoragePathMethod · 0.95
ensureRemoteUploadDirMethod · 0.95

Calls 1

uploadRootMethod · 0.95

Tested by

no test coverage detected