mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02:00
fix copying multiple items
This commit is contained in:
@ -24,13 +24,12 @@ class CopyTask(listener: CopyTask.CopyListener, val context: Context) : AsyncTas
|
|||||||
try {
|
try {
|
||||||
destinationDir = File(pair.second, file.name)
|
destinationDir = File(pair.second, file.name)
|
||||||
copy(file, destinationDir!!)
|
copy(file, destinationDir!!)
|
||||||
return true
|
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Log.e(TAG, "copy " + e)
|
Log.e(TAG, "copy " + e)
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return false
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
@Throws(Exception::class)
|
@Throws(Exception::class)
|
||||||
|
Reference in New Issue
Block a user