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

Method uploadRootForId

src/FileRise/Storage/SourceContext.php:148–155  ·  view source on GitHub ↗
(string $id)

Source from the content-addressed store, hash-verified

146 }
147
148 public static function uploadRootForId(string $id): string
149 {
150 $src = self::getSourceById($id);
151 if ($src) {
152 return self::uploadRootForSource($src);
153 }
154 return rtrim((string)UPLOAD_DIR, "/\\") . DIRECTORY_SEPARATOR;
155 }
156
157 private static function uploadRootForSource(array $src): string
158 {

Callers 7

resolveSourceContextMethod · 0.80
sourceRootMethod · 0.80

Calls 2

getSourceByIdMethod · 0.95
uploadRootForSourceMethod · 0.95

Tested by

no test coverage detected