aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/Shared/FileManager+Extension.swift
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-03-17 00:41:10 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-17 08:51:27 +0100
commita6f80135ef65f33da67459b56c7f659c64d6d341 (patch)
treefcfe4ec56bdcac07ad235e9db9a83a530fd0e576 /WireGuard/Shared/FileManager+Extension.swift
parentmacOS: Tunnel detail: Activate / Deactivate is now a button (diff)
downloadwireguard-apple-a6f80135ef65f33da67459b56c7f659c64d6d341.tar.xz
wireguard-apple-a6f80135ef65f33da67459b56c7f659c64d6d341.zip
ringlogger: support mpsc for singlefile
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
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)