Commit c524029d authored by wanglei's avatar wanglei

Merge remote-tracking branch 'origin/master'

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