adding another check at moving files to avoid deleting invalid ones
This commit is contained in:
parent
9f96a315cb
commit
69d1adfc78
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ buildscript {
|
|||
propMinSdkVersion = 21
|
||||
propTargetSdkVersion = propCompileSdkVersion
|
||||
propVersionCode = 1
|
||||
propVersionName = '5.10.7'
|
||||
propVersionName = '5.10.8'
|
||||
kotlin_version = '1.3.21'
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue