mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-16 20:00:36 +01:00
fix copying multiple items
This commit is contained in:
parent
ac1991c887
commit
60a8f1f054
@ -24,14 +24,13 @@ 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 true
|
||||
}
|
||||
|
||||
@Throws(Exception::class)
|
||||
private fun copy(source: File, destination: File) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user