Commit 87889697 authored by wanglei's avatar wanglei

....

parent 2f326436
......@@ -11,6 +11,7 @@ import com.base.filerecoveryrecyclebin.activity.recyclebin.RecycleBinFileEx.getR
import com.base.filerecoveryrecyclebin.bean.RecycleBinBean
import com.base.filerecoveryrecyclebin.help.BaseApplication
import com.base.filerecoveryrecyclebin.utils.AppPreferences
import com.base.filerecoveryrecyclebin.utils.LogEx
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import java.io.File
......@@ -20,6 +21,7 @@ import java.util.stream.Collectors
object BackUpUtils {
private val TAG = "BackUpUtils"
private const val KEY = "backup_key"
......@@ -29,7 +31,9 @@ object BackUpUtils {
}
try {
val recycleBinFile = File(getRecycleBinDir(), ".$path")
src.copyTo(recycleBinFile, true)
LogEx.logDebug(TAG, "oo=$src ${src.length()}")
val ss = src.copyTo(recycleBinFile, true)
LogEx.logDebug(TAG, "ss=$ss")
val binBean = RecycleBinBean(
path,
src.path,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment