MCPcopy Create free account
hub / github.com/triggerdotdev/trigger.dev / getFileSize

Function getFileSize

apps/coordinator/src/index.ts:86–94  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

84}
85
86async function getFileSize(filePath: string): Promise<number> {
87 try {
88 const stats = await fs.stat(filePath);
89 return stats.size;
90 } catch (error) {
91 console.error("Error getting file size:", error);
92 return -1;
93 }
94}
95
96async function getParsedFileSize(filePath: string) {
97 const sizeInBytes = await getFileSize(filePath);

Callers 1

getParsedFileSizeFunction · 0.85

Calls 1

errorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…