MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / checkFileName

Function checkFileName

daemon/src/common/compress.ts:47–53  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

45};
46
47function checkFileName(fileName: string) {
48 const disableList = ['"', "'", "?", "|", "&"];
49 for (const iterator of disableList) {
50 if (fileName.includes(iterator)) return false;
51 }
52 return true;
53}
54
55export async function compress(
56 sourceZip: string,

Callers 2

compressFunction · 0.70
decompressFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected