diff --git a/app/src/main/java/com/simplemobiletools/filemanager/asynctasks/CopyTask.kt b/app/src/main/java/com/simplemobiletools/filemanager/asynctasks/CopyTask.kt index e2269410..4174cb33 100644 --- a/app/src/main/java/com/simplemobiletools/filemanager/asynctasks/CopyTask.kt +++ b/app/src/main/java/com/simplemobiletools/filemanager/asynctasks/CopyTask.kt @@ -24,13 +24,12 @@ class CopyTask(listener: CopyTask.CopyListener, val context: Context) : AsyncTas try { destinationDir = File(pair.second, file.name) copy(file, destinationDir!!) - return true } catch (e: Exception) { Log.e(TAG, "copy " + e) + return false } - } - return false + return true } @Throws(Exception::class)