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

Method stagingRoot

src/FileRise/Domain/UploadModel.php:67–77  ·  view source on GitHub ↗
(bool $isLocal)

Source from the content-addressed store, hash-verified

65 }
66
67 private static function stagingRoot(bool $isLocal): string
68 {
69 if ($isLocal) {
70 return self::uploadRoot();
71 }
72 $base = rtrim(self::metaRoot(), '/\\') . DIRECTORY_SEPARATOR . 'uploadtmp' . DIRECTORY_SEPARATOR;
73 if (!is_dir($base)) {
74 @mkdir($base, 0775, true);
75 }
76 return $base;
77 }
78
79 private static function resumableTtlSeconds(): int
80 {

Callers 3

handleUploadMethod · 0.95
removeChunksMethod · 0.95

Calls 2

uploadRootMethod · 0.95
metaRootMethod · 0.95

Tested by

no test coverage detected