MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / setDiskPath

Function setDiskPath

ui/media/js/parameters.js:648–653  ·  view source on GitHub ↗
(defaultDiskPath, force = false)

Source from the content-addressed store, hash-verified

646})
647
648async function setDiskPath(defaultDiskPath, force = false) {
649 var diskPath = getSetting("diskPath")
650 if (force || diskPath == "" || diskPath == undefined || diskPath == "undefined") {
651 setSetting("diskPath", defaultDiskPath)
652 }
653}
654
655function setDeviceInfo(devices) {
656 let cpu = devices.all.cpu.name

Callers 1

getSystemInfoFunction · 0.85

Calls 2

getSettingFunction · 0.85
setSettingFunction · 0.85

Tested by

no test coverage detected