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

Function getExtension

packages/parser/src/sniffer.ts:27–29  ·  view source on GitHub ↗

* 获取文件扩展名(小写)

(filePath: string)

Source from the content-addressed store, hash-verified

25 * 获取文件扩展名(小写)
26 */
27function getExtension(filePath: string): string {
28 return path.extname(filePath).toLowerCase()
29}
30
31/**
32 * 检查文件头是否匹配签名

Callers 4

sniffMethod · 0.85
getParserMethod · 0.85
sniffAllMethod · 0.85
getParserCandidatesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected