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

Method metaRootForId

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

Source from the content-addressed store, hash-verified

180 }
181
182 public static function metaRootForId(string $id): string
183 {
184 $src = self::getSourceById($id);
185 if ($src) {
186 return self::metaRootForSource($src);
187 }
188 return rtrim((string)META_DIR, "/\\") . DIRECTORY_SEPARATOR;
189 }
190
191 private static function metaRootForSource(array $src): string
192 {

Callers 1

purgeUserMethod · 0.45

Calls 2

getSourceByIdMethod · 0.95
metaRootForSourceMethod · 0.95

Tested by

no test coverage detected