mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Add AppConfig.dataSubfolder method.
This commit is contained in:
@@ -46,6 +46,12 @@ public final class AppConfig {
|
||||
FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first!
|
||||
#endif
|
||||
}()
|
||||
|
||||
/// Returns URL to subfolder in data folder (creating the folder if it doesn’t exist)
|
||||
public static func dataSubfolder(named name: String) -> URL {
|
||||
subfolder(name, in: dataFolder)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private extension AppConfig {
|
||||
|
||||
Reference in New Issue
Block a user