aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/Shared/FileManager+Extension.swift
diff options
context:
space:
mode:
Diffstat (limited to 'WireGuard/Shared/FileManager+Extension.swift')
-rw-r--r--WireGuard/Shared/FileManager+Extension.swift10
1 files changed, 1 insertions, 9 deletions
diff --git a/WireGuard/Shared/FileManager+Extension.swift b/WireGuard/Shared/FileManager+Extension.swift
index edd764f7..d52ec0b2 100644
--- a/WireGuard/Shared/FileManager+Extension.swift
+++ b/WireGuard/Shared/FileManager+Extension.swift
@@ -27,7 +27,7 @@ extension FileManager {
return sharedFolderURL
}
- static var networkExtensionLogFileURL: URL? {
+ static var logFileURL: URL? {
return sharedFolderURL?.appendingPathComponent("tunnel-log.bin")
}
@@ -35,14 +35,6 @@ extension FileManager {
return sharedFolderURL?.appendingPathComponent("last-error.txt")
}
- static var appLogFileURL: URL? {
- guard let documentDirURL = FileManager.default.urls(for: .cachesDirectory, in: .userDomainMask).first else {
- wg_log(.error, message: "Cannot obtain app documents folder URL")
- return nil
- }
- return documentDirURL.appendingPathComponent("app-log.bin")
- }
-
static func deleteFile(at url: URL) -> Bool {
do {
try FileManager.default.removeItem(at: url)