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

Method decryptFileToPath

src/FileRise/Support/CryptoAtRest.php:311–322  ·  view source on GitHub ↗
(string $srcPath, string $destPath)

Source from the content-addressed store, hash-verified

309 }
310
311 public static function decryptFileToPath(string $srcPath, string $destPath): void
312 {
313 $out = @fopen($destPath, 'wb');
314 if ($out === false) {
315 throw new \RuntimeException('Unable to open destination file for decryption.');
316 }
317 try {
318 self::streamDecrypted($srcPath, $out);
319 } finally {
320 @fclose($out);
321 }
322 }
323
324 public static function decryptFileInPlace(string $path): void
325 {

Callers 3

decryptFileInPlaceMethod · 0.95
copyFilesMethod · 0.80
moveFilesMethod · 0.80

Calls 1

streamDecryptedMethod · 0.95

Tested by

no test coverage detected