mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-11 13:59:13 +00:00
Remove now unneeded migration from caches to application support
This commit is contained in:
parent
591a8679e9
commit
9f8c7cc5a9
@ -35,14 +35,8 @@ extension URL {
|
|||||||
|
|
||||||
/// The base directory where all session data is stored.
|
/// The base directory where all session data is stored.
|
||||||
static var sessionsBaseDirectory: URL {
|
static var sessionsBaseDirectory: URL {
|
||||||
let cacheSessionsURL = cacheBaseDirectory.appendingPathComponent("Sessions", isDirectory: true)
|
|
||||||
let applicationSupportSessionsURL = applicationSupportBaseDirectory.appendingPathComponent("Sessions", isDirectory: true)
|
let applicationSupportSessionsURL = applicationSupportBaseDirectory.appendingPathComponent("Sessions", isDirectory: true)
|
||||||
|
|
||||||
#warning("Migration from caches to application support. Remove this in a couple of releases.")
|
|
||||||
if FileManager.default.directoryExists(at: cacheSessionsURL) {
|
|
||||||
try? FileManager.default.moveItem(at: cacheSessionsURL, to: applicationSupportSessionsURL)
|
|
||||||
}
|
|
||||||
|
|
||||||
try? FileManager.default.createDirectoryIfNeeded(at: applicationSupportSessionsURL)
|
try? FileManager.default.createDirectoryIfNeeded(at: applicationSupportSessionsURL)
|
||||||
|
|
||||||
return applicationSupportSessionsURL
|
return applicationSupportSessionsURL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user