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

Method checkPath

src/renderer/src/utils/pathFormat.ts:37–39  ·  view source on GitHub ↗

* @description 检查路径格式是否正确

(path: string)

Source from the content-addressed store, hash-verified

35 * @description 检查路径格式是否正确
36 */
37 static checkPath(path: string): boolean {
38 return path.startsWith('/') || path.includes('\\')
39 }
40
41 /**
42 * @description 返回文件名

Callers 3

pathFormat.test.tsFile · 0.80
getOutPutPATHFunction · 0.80
setoutputpathMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected