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

Method readAuthFileLinks

src/FileRise/Domain/FileModel.php:2813–2820  ·  view source on GitHub ↗
(string $path)

Source from the content-addressed store, hash-verified

2811 }
2812
2813 private static function readAuthFileLinks(string $path): array
2814 {
2815 if (!is_file($path)) {
2816 return [];
2817 }
2818 $decoded = json_decode((string)@file_get_contents($path), true);
2819 return is_array($decoded) ? $decoded : [];
2820 }
2821
2822 private static function cleanAuthFileLinks(array $links, int $now): array
2823 {

Callers 2

createAuthFileLinkMethod · 0.95
getAuthFileLinkRecordMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected