Skip to content

Commit 0305f70

Browse files
committed
fix: [SMB] Upload broken config files when reloading
Change-Id: Ied0fcfe504a47a1031934d636347c2af9b3ce44b
1 parent 6392d0e commit 0305f70

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • source/core/network/src/main/kotlin/com/xayah/core/network/client

source/core/network/src/main/kotlin/com/xayah/core/network/client/SMBClientImpl.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ class SMBClientImpl(private val entity: CloudEntity, private val extra: SMBExtra
210210
val name = PathUtil.getFileName(src)
211211
val dstPath = "$dst/$name"
212212
log { "upload: $src to $dstPath" }
213+
deleteFile(dstPath)
213214
val dstFile = openFileOnWrite(dstPath)
214215
val dstStream = dstFile.outputStream
215216
val srcFile = File(src)

0 commit comments

Comments
 (0)