import Foundation

extension FileManager {

    var documentDirectory: URL {
        try! url(
            for: .documentDirectory,
            in: .userDomainMask,
            appropriateFor: nil, create: true)
    }
}

extension Content {

    static let mock: Content = Content(
        settings: .default,
        posts: [.empty, .mock, .fullMock],
        pages: [.empty],
        tags: [.hiking, .mountains, .nature, .sports],
        files: [],
        tagOverview: nil)
}
