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

Method getCopyTreeLimits

src/FileRise/Domain/FolderModel.php:1213–1219  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1211 }
1212
1213 private static function getCopyTreeLimits(): array
1214 {
1215 $maxFiles = self::crossSourceLimit('FR_XCOPY_MAX_FILES', 5000);
1216 $maxBytes = self::crossSourceLimit('FR_XCOPY_MAX_BYTES', 5 * 1024 * 1024 * 1024);
1217 $maxDepth = self::crossSourceLimit('FR_XCOPY_MAX_DEPTH', 15);
1218 return [$maxFiles, $maxBytes, $maxDepth];
1219 }
1220
1221 private static function scanFolderTreeForCopy(
1222 StorageAdapterInterface $storage,

Callers 1

Calls 1

crossSourceLimitMethod · 0.95

Tested by

no test coverage detected