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

Method tempTransferDir

src/FileRise/Domain/FileModel.php:449–460  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

447 }
448
449 private static function tempTransferDir(): string
450 {
451 $base = rtrim((string)META_DIR, '/\\');
452 if ($base === '') {
453 return sys_get_temp_dir();
454 }
455 $dir = $base . DIRECTORY_SEPARATOR . 'transfer_tmp';
456 if (!is_dir($dir)) {
457 @mkdir($dir, 0775, true);
458 }
459 return is_dir($dir) ? $dir : sys_get_temp_dir();
460 }
461
462 private static function bufferSourceToTempStream(StorageAdapterInterface $srcStorage, string $srcPath): array
463 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected