Commit e9c2e507 authored by leichao.gao's avatar leichao.gao

恢复代码

parent c6baa046
......@@ -32,13 +32,23 @@ object BackUpUtils {
try {
val recycleBinFile = File(getRecycleBinDir(), ".$path")
LogEx.logDebug(TAG, "oo=$src ${src.length()}")
if (src.length() == 0L) {
return
}
val ss = src.copyTo(recycleBinFile, true)
LogEx.logDebug(TAG, "ss=$ss")
if (ss.length() == 0L) {
return
}
val binBean = RecycleBinBean(path, src.path, recycleBinFile.absolutePath, 0, src.length(), getFileExtension(src), false)
val binBean = RecycleBinBean(
path,
src.path,
recycleBinFile.absolutePath,
0,
src.length(),
getFileExtension(src),
false
)
saveData(binBean, path)
} catch (e: Exception) {
......
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