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

Method loadMeta

src/FileRise/WebDAV/FileRiseFile.php:248–256  ·  view source on GitHub ↗
(string $folderKey)

Source from the content-addressed store, hash-verified

246 }
247
248 private function loadMeta(string $folderKey): array
249 {
250 $mf = $this->metaFile($folderKey);
251 if (!is_file($mf)) {
252 return [];
253 }
254 $d = json_decode(@file_get_contents($mf), true);
255 return is_array($d) ? $d : [];
256 }
257
258 private function saveMeta(string $folderKey, array $meta): void
259 {

Callers 2

isOwnerMethod · 0.95
updateMetadataMethod · 0.95

Calls 1

metaFileMethod · 0.95

Tested by

no test coverage detected