mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-17 04:10:39 +01:00
fix copying multiple items
This commit is contained in:
parent
ac1991c887
commit
60a8f1f054
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user