From 0fac1119a01ef1482699e9177fa8556067c808e7 Mon Sep 17 00:00:00 2001 From: Kuingsmile <96409857+Kuingsmile@users.noreply.github.com> Date: Fri, 5 Sep 2025 11:40:43 +0800 Subject: [PATCH] :bug: Fix(custom): fix webdav sync issues ISSUES CLOSED: #383 --- src/main/utils/syncSettings.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/utils/syncSettings.ts b/src/main/utils/syncSettings.ts index 9b5b4469..c88ebea6 100644 --- a/src/main/utils/syncSettings.ts +++ b/src/main/utils/syncSettings.ts @@ -379,8 +379,10 @@ async function downloadRemoteToLocal(syncConfig: ISyncConfig, fileName: string) if (webdavAuthType === 'digest') { options.authType = AuthType.Digest } + console.log(webdavEndpointF, options) const client = createClient(webdavEndpointF, options) - const remoteFilePath = webdavSavePath ? path.join(webdavSavePath, fileName) : fileName + const remoteFilePath = (webdavSavePath ? path.join(webdavSavePath, fileName) : fileName).replace(/\\/g, '/') + console.log('remoteFilePath', remoteFilePath) const fileContent = await client.getFileContents(remoteFilePath) await fs.writeFile(localFilePath, fileContent as Buffer) return true