MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / getFileSize

Function getFileSize

packages/parser/src/utils.ts:11–13  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

9 * 获取文件大小
10 */
11export function getFileSize(filePath: string): number {
12 return fs.statSync(filePath).size
13}
14
15/**
16 * 读取文件头部指定字节数

Callers 14

needsPreprocessFunction · 0.90
parseWeFlowFunction · 0.90
parseTxtFunction · 0.90
parseWhatsAppFunction · 0.90
parseInstagramFunction · 0.90
parseV4Function · 0.90
parseChatLabFunction · 0.90
parseChatLabJsonlFunction · 0.90
parseTelegramSingleFunction · 0.90
parseDiscordExporterFunction · 0.90
parseGoogleChatFunction · 0.90
parseTelegramFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected