Added method for AppUpgrate call to delete AppLevel directory.
This commit is contained in:
parent
f6acae9afd
commit
522bc5d9cb
@ -106,4 +106,8 @@ public class CachedData: Codable {
|
|||||||
private func filePath(forKey key: String) -> URL {
|
private func filePath(forKey key: String) -> URL {
|
||||||
return cacheDirectory.appendingPathComponent("\(key).json")
|
return cacheDirectory.appendingPathComponent("\(key).json")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@objc public func removeAllAppLevel() throws {
|
||||||
|
try FileManager.default.removeItem(at: appLevelCacheDirectory)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user