Backups in Ferrite archive a user's bookmarks, history, source lists, and source names. Sources are not archived due to the size of the backup increasing exponentially. These files use the .feb format to avoid JSON conflicts when opening the file in Ferrite. The backup file can be renamed to JSON for editing at any time. Add the Backport namespace to be used for ported features rather than making a file for every iOS 14 adaptation. Move history and bookmark creation to the PersistenceController rather than individual functions. Signed-off-by: kingbri <bdashore3@proton.me>
14 lines
226 B
Swift
14 lines
226 B
Swift
//
|
|
// FileManager.swift
|
|
// Ferrite
|
|
//
|
|
// Created by Brian Dashore on 9/17/22.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension FileManager {
|
|
var appDirectory: URL {
|
|
urls(for: .documentDirectory, in: .userDomainMask)[0]
|
|
}
|
|
}
|