mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-07 05:32:52 +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') {
|
if (webdavAuthType === 'digest') {
|
||||||
options.authType = AuthType.Digest
|
options.authType = AuthType.Digest
|
||||||
}
|
}
|
||||||
console.log(webdavEndpointF, options)
|
|
||||||
const client = createClient(webdavEndpointF, options)
|
const client = createClient(webdavEndpointF, options)
|
||||||
const remoteFilePath = (webdavSavePath ? path.join(webdavSavePath, fileName) : fileName).replace(/\\/g, '/')
|
const remoteFilePath = (webdavSavePath ? path.join(webdavSavePath, fileName) : fileName).replace(/\\/g, '/')
|
||||||
console.log('remoteFilePath', remoteFilePath)
|
|
||||||
const fileContent = await client.getFileContents(remoteFilePath)
|
const fileContent = await client.getFileContents(remoteFilePath)
|
||||||
await fs.writeFile(localFilePath, fileContent as Buffer)
|
await fs.writeFile(localFilePath, fileContent as Buffer)
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user