(string $sourceFolder, string $targetFolder)
| 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, |
no test coverage detected