Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
F
File Recovery RecycleBin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
File Recovery RecycleBin
Commits
e9c2e507
Commit
e9c2e507
authored
Jul 22, 2024
by
leichao.gao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
恢复代码
parent
c6baa046
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
BackUpUtils.kt
...va/com/base/filerecoveryrecyclebin/service/BackUpUtils.kt
+12
-2
No files found.
app/src/main/java/com/base/filerecoveryrecyclebin/service/BackUpUtils.kt
View file @
e9c2e507
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment