adding another check at moving files to avoid deleting invalid ones

This commit is contained in:
tibbi 2019-03-09 20:30:05 +01:00
parent 9f96a315cb
commit 69d1adfc78
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ buildscript {
propMinSdkVersion = 21
propTargetSdkVersion = propCompileSdkVersion
propVersionCode = 1
propVersionName = '5.10.7'
propVersionName = '5.10.8'
kotlin_version = '1.3.21'
}

View file

@ -214,7 +214,7 @@ class CopyMoveTask(val activity: BaseSimpleActivity, val copyOnly: Boolean = fal
bytes = inputStream.read(buffer)
}
if (source.size == copiedSize) {
if (source.size == copiedSize && File(destination.path).exists()) {
mTransferredFiles.add(source)
if (activity.baseConfig.keepLastModified) {
copyOldLastModified(source.path, destination.path)