Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xx messenger iOS
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile
iOS
xx messenger iOS
Commits
15688e57
Commit
15688e57
authored
2 years ago
by
Bruno Muniz
Browse files
Options
Downloads
Patches
Plain Diff
Fixes delete account
parent
eb99e4b7
No related branches found
No related tags found
1 merge request
!84
Fixes delete account
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sources/AppCore/DBManager/DBManagerRemoveDB.swift
+8
-2
8 additions, 2 deletions
Sources/AppCore/DBManager/DBManagerRemoveDB.swift
with
8 additions
and
2 deletions
Sources/AppCore/DBManager/DBManagerRemoveDB.swift
+
8
−
2
View file @
15688e57
...
@@ -22,8 +22,14 @@ extension DBManagerRemoveDB {
...
@@ -22,8 +22,14 @@ extension DBManagerRemoveDB {
unsetDB
()
unsetDB
()
try
db
?
.
drop
()
try
db
?
.
drop
()
let
fm
=
FileManager
.
default
let
fm
=
FileManager
.
default
if
fm
.
fileExists
(
atPath
:
url
.
path
)
{
if
fm
.
fileExists
(
atPath
:
url
.
path
),
url
.
startAccessingSecurityScopedResource
()
{
try
fm
.
removeItem
(
atPath
:
url
.
path
)
do
{
try
fm
.
removeItem
(
atPath
:
url
.
path
)
url
.
stopAccessingSecurityScopedResource
()
}
catch
{
url
.
stopAccessingSecurityScopedResource
()
throw
error
}
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment