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

Method metaRootForId

src/FileRise/Domain/FileModel.php:51–65  ·  view source on GitHub ↗
(string $sourceId)

Source from the content-addressed store, hash-verified

49 }
50
51 private static function metaRootForId(string $sourceId): string
52 {
53 if (class_exists('SourceContext')) {
54 $root = SourceContext::metaRootForId($sourceId);
55 if (!is_dir($root)) {
56 @mkdir($root, 0775, true);
57 }
58 return $root;
59 }
60 $root = rtrim((string)META_DIR, '/\\') . DIRECTORY_SEPARATOR;
61 if (!is_dir($root)) {
62 @mkdir($root, 0775, true);
63 }
64 return $root;
65 }
66
67 private static function getMetadataFilePathForRoot(string $metaRoot, string $folder): string
68 {

Callers 9

logPortalDownloadMethod · 0.45
resolveSourceContextMethod · 0.45
resolveTargetsMethod · 0.45
downloadLogRootsMethod · 0.45
getAuthFileLinkRecordMethod · 0.45
getShareRecordMethod · 0.45
findShareFolderRecordMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected