MCPcopy Create free account
hub / github.com/ScattrdBlade/bigFileUpload / canServiceHandleFile

Function canServiceHandleFile

utils/upload.ts:1228–1238  ·  view source on GitHub ↗
(service: ServiceType, fileName: string)

Source from the content-addressed store, hash-verified

1226}
1227
1228function canServiceHandleFile(service: ServiceType, fileName: string): boolean {
1229 if (service === ServiceType.ZEROX0 && !Native) {
1230 return false;
1231 }
1232
1233 if (isExeFileName(fileName) && EXE_BLOCKED_SERVICES.has(service)) {
1234 return false;
1235 }
1236
1237 return true;
1238}
1239
1240function normalizePrimaryService(primary: ServiceType, fileName: string): ServiceType {
1241 if (canServiceHandleFile(primary, fileName)) {

Callers 2

normalizePrimaryServiceFunction · 0.85
buildUploadOrderFunction · 0.85

Calls 1

isExeFileNameFunction · 0.85

Tested by

no test coverage detected