Rotate the session directory each time a new client is built for authentication.

This commit is contained in:
Doug
2024-08-12 11:00:34 +01:00
committed by Doug
parent 8e9ed248e0
commit 5e36811822
3 changed files with 46 additions and 15 deletions
@@ -23,7 +23,7 @@ enum FileManagerError: Error {
extension FileManager {
func directoryExists(at url: URL) -> Bool {
var isDirectory: ObjCBool = false
guard fileExists(atPath: url.path(), isDirectory: &isDirectory) else {
guard fileExists(atPath: url.path(percentEncoded: false), isDirectory: &isDirectory) else {
return false
}
return isDirectory.boolValue