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

Method load

src/FileRise/Domain/FolderCrypto.php:66–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64 }
65
66 public static function load(): array
67 {
68 $path = self::filePath();
69 if (self::$cachePath !== $path) {
70 self::$cache = null;
71 self::$cacheMtime = 0;
72 self::$cachePath = $path;
73 }
74 $mt = is_file($path) ? (int)@filemtime($path) : 0;
75 if (self::$cache !== null && self::$cacheMtime === $mt) {
76 return self::$cache;
77 }
78
79 self::$cache = self::loadFresh();
80 self::$cacheMtime = $mt;
81 return self::$cache;
82 }
83
84 private static function write(array $doc): bool
85 {

Callers 13

isEncryptedMethod · 0.95
getJobStatusMethod · 0.95
setJobMethod · 0.95
setEncryptedMethod · 0.95
migrateSubtreeMethod · 0.95
removeSubtreeMethod · 0.95
enqueueTransferJobMethod · 0.45
folderCryptoSummaryMethod · 0.45
enqueueTransferJobMethod · 0.45
transferJobStatusMethod · 0.45
transferJobCancelMethod · 0.45
applyOidcGroupsToProMethod · 0.45

Calls 2

filePathMethod · 0.95
loadFreshMethod · 0.95

Tested by

no test coverage detected