mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-06 20:42:57 +08:00
🔨 Refactor(custom): remove unused debug log
This commit is contained in:
@@ -379,10 +379,8 @@ 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).replace(/\\/g, '/')
|
||||
console.log('remoteFilePath', remoteFilePath)
|
||||
const fileContent = await client.getFileContents(remoteFilePath)
|
||||
await fs.writeFile(localFilePath, fileContent as Buffer)
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user