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

Function getOutPutPATH

src/renderer/src/utils/getFinal2xCoreConfig.ts:11–19  ·  view source on GitHub ↗

* @description: 返回输出路径,如果输出路径不合法,则从第一个输入路径构造一个合法输出路径

()

Source from the content-addressed store, hash-verified

9 * @description: 返回输出路径,如果输出路径不合法,则从第一个输入路径构造一个合法输出路径
10 */
11function getOutPutPATH(): string {
12 if (!PathFormat.checkPath(IOPath.getoutputpath())) {
13 const inputPATHList = IOPath.getList()
14 const pathFormat = new PathFormat()
15 pathFormat.setRootPath(inputPATHList[0])
16 IOPath.setoutputpath(pathFormat.getRootPath())
17 }
18 return IOPath.getoutputpath()
19}
20
21/**
22 * @description: 返回最终的json字符串配置文件

Callers 1

getFinal2xCoreConfigFunction · 0.85

Calls 6

setRootPathMethod · 0.95
getRootPathMethod · 0.95
checkPathMethod · 0.80
getoutputpathMethod · 0.80
getListMethod · 0.80
setoutputpathMethod · 0.80

Tested by

no test coverage detected