(filePath: string)
| 84 | } |
| 85 | |
| 86 | async 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 | |
| 96 | async function getParsedFileSize(filePath: string) { |
| 97 | const sizeInBytes = await getFileSize(filePath); |
no test coverage detected
searching dependent graphs…