MCPcopy Index your code
hub / github.com/ChinaGodMan/UserScripts / updateConfig

Function updateConfig

missav-explorer/missav-explorer.user.js:1702–1712  ·  view source on GitHub ↗
(newUrl, newUsername, newPassword)

Source from the content-addressed store, hash-verified

1700
1701 //刷新
1702 function updateConfig(newUrl, newUsername, newPassword) {
1703 if (newUrl && newUsername && newPassword) {
1704 url = newUrl
1705 username = newUsername
1706 password = newPassword
1707 // 在这里调用登录函数
1708 login()
1709 } else {
1710 console.error('WebDAV 配置信息不完整')
1711 }
1712 }
1713 // 获取 WebDAV 中指定路径下的所有文件和文件夹
1714 async function listFilesAndFolders(folderName) {
1715 const path = folderName.endsWith('/') ? folderName : folderName + '/'

Callers

nothing calls this directly

Calls 1

loginFunction · 0.70

Tested by

no test coverage detected