Put the Favicons cache folder inside a com.ranchero.evergreen folder.

This commit is contained in:
Brent Simmons 2017-11-25 13:47:26 -08:00
parent 8425e9033b
commit 16f1791b95

View File

@ -123,7 +123,8 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations,
currentTheme = themeLoader.defaultTheme
let tempDirectory = NSTemporaryDirectory()
let faviconsFolder = (tempDirectory as NSString).appendingPathComponent("Favicons")
let cacheFolder = (tempDirectory as NSString).appendingPathComponent("com.ranchero.evergreen")
let faviconsFolder = (cacheFolder as NSString).appendingPathComponent("Favicons")
let faviconsFolderURL = URL(fileURLWithPath: faviconsFolder)
try! FileManager.default.createDirectory(at: faviconsFolderURL, withIntermediateDirectories: true, attributes: nil)
faviconDownloader = FaviconDownloader(folder: faviconsFolder)