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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile
iOS
xx messenger iOS
Merge requests
!84
Fixes delete account
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Fixes delete account
fix/delete-account
into
dev
Overview
1
Commits
1
Pipelines
0
Changes
1
All threads resolved!
Show all comments
Merged
Fixes delete account
Bruno Muniz
requested to merge
fix/delete-account
into
dev
Dec 1, 2022
Overview
1
Commits
1
Pipelines
0
Changes
1
All threads resolved!
Show all comments
0
0
Merge request reports
Compare
dev
version 1
6a15d797
Dec 1, 2022
dev (base)
and
latest version
latest version
15688e57
1 commit,
Dec 1, 2022
version 1
6a15d797
1 commit,
Dec 1, 2022
1 file
+
8
−
2
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Sources/AppCore/DBManager/DBManagerRemoveDB.swift
+
8
−
2
View file @ 15688e57
Edit in single-file editor
Open in Web IDE
Show comments on this file
Show full file
@@ -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
}
}
}
}
}
}
}
Loading