mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-06 20:42:57 +08:00
🔨 Refactor(custom): remove debug code
This commit is contained in:
@@ -144,9 +144,7 @@ async function uploadLocalToRemote(syncConfig: ISyncConfig, fileName: string) {
|
||||
const remoteFilePath = webdavSavePath
|
||||
? `${webdavSavePath}/${fileName}`.replace(/^\/+|\/+$/g, '').replace(/\/\/+/g, '/')
|
||||
: fileName
|
||||
console.log('remoteFilePath', remoteFilePath)
|
||||
const remoteDir = path.dirname(remoteFilePath)
|
||||
console.log('remoteDir', remoteDir)
|
||||
if (remoteDir !== '/') {
|
||||
await client.createDirectory(remoteDir, { recursive: true })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user