MCPcopy Create free account
hub / github.com/arctic-cli/interface / getFileExtension

Function getFileExtension

packages/util/src/path.ts:14–18  ·  view source on GitHub ↗
(path: string | undefined)

Source from the content-addressed store, hash-verified

12}
13
14export function getFileExtension(path: string | undefined) {
15 if (!path) return ""
16 const parts = path.split(".")
17 return parts[parts.length - 1]
18}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected