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

Method setoutputpath

src/renderer/src/utils/IOPath.ts:106–115  ·  view source on GitHub ↗

* @description Set outputpath if outputpathLock is false or outputpath is invalid

(path: string)

Source from the content-addressed store, hash-verified

104 * @description Set outputpath if outputpathLock is false or outputpath is invalid
105 */
106 static setoutputpath(path: string): void {
107 const { outputpath, outputpathLock } = storeToRefs(useIOPathStore())
108 // if outputpathLock is false or outputpath is empty, set outputpath
109 if (path !== '' && (outputpathLock.value === false || !PathFormat.checkPath(outputpath.value))) {
110 outputpath.value = path
111 }
112 else {
113 console.log('outputpath Lock!')
114 }
115 }
116
117 /**
118 * @description get outputpath

Callers 2

IOPath.test.tsFile · 0.80
getOutPutPATHFunction · 0.80

Calls 1

checkPathMethod · 0.80

Tested by

no test coverage detected