MCPcopy
hub / github.com/EutropicAI/Final2x / getFileName

Method getFileName

src/renderer/src/utils/pathFormat.ts:44–47  ·  view source on GitHub ↗

* @description 返回文件名

(path: string)

Source from the content-addressed store, hash-verified

42 * @description 返回文件名
43 */
44 static getFileName(path: string): string {
45 const segments = path.split(/[/\\]/)
46 return segments[segments.length - 1]
47 }
48}
49
50export default PathFormat

Callers 1

pathFormat.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected