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

Method copyFolderSameSource

src/FileRise/Domain/FolderModel.php:1433–1448  ·  view source on GitHub ↗
(string $sourceFolder, string $targetFolder)

Source from the content-addressed store, hash-verified

1431 }
1432
1433 public static function copyFolderSameSource(string $sourceFolder, string $targetFolder): array
1434 {
1435 $storage = self::storage();
1436 $root = self::uploadRoot();
1437 return self::copyFolderTreeInternal(
1438 $storage,
1439 $storage,
1440 $root,
1441 $root,
1442 $sourceFolder,
1443 $targetFolder,
1444 static function (string $srcKey, string $dstKey, array $files): array {
1445 return FileModel::copyFiles($srcKey, $dstKey, $files);
1446 }
1447 );
1448 }
1449
1450 public static function copyFolderAcrossSources(
1451 string $sourceId,

Callers 2

moveFolderMethod · 0.80

Calls 4

storageMethod · 0.95
uploadRootMethod · 0.95
copyFilesMethod · 0.45

Tested by

no test coverage detected