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

Method saveResumableIndex

src/FileRise/Domain/UploadModel.php:326–334  ·  view source on GitHub ↗
(array $data)

Source from the content-addressed store, hash-verified

324 }
325
326 private static function saveResumableIndex(array $data): void
327 {
328 $path = self::resumableIndexPath();
329 $payload = json_encode($data, JSON_UNESCAPED_SLASHES);
330 if ($payload === false) {
331 return;
332 }
333 @file_put_contents($path, $payload, LOCK_EX);
334 }
335
336 private static function markResumablePending(string $folderSan): void
337 {

Callers 5

markResumablePendingMethod · 0.95
removeChunksMethod · 0.95

Calls 1

resumableIndexPathMethod · 0.95

Tested by

no test coverage detected