MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / sanitizeFilename

Method sanitizeFilename

music/music.ts:243–248  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

241 await fs.promises.access(path);
242 return true;
243 } catch {
244 return false;
245 }
246 }
247
248 static formatSize(bytes: number): string {
249 const units = ["B", "KB", "MB", "GB"];
250 let size = bytes;
251 let unitIndex = 0;

Callers 1

downloadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected