Nextcloud login flow v2 support (not in working state yet)

This commit is contained in:
Vicnet
2023-09-19 12:04:59 +02:00
parent 154cd9a51f
commit 0f16b164d6
6 changed files with 233 additions and 49 deletions

View File

@@ -67,3 +67,5 @@ struct RecipeImage {
var thumb: UIImage?
var full: UIImage?
}

View File

@@ -59,10 +59,7 @@ class DataStore {
func recipeDetailExists(recipeId: Int) -> Bool {
let filePath = "recipe\(recipeId).data"
guard let folderPath = fileManager.urls(for: .documentDirectory, in: .userDomainMask).first?.path() else { return false }
let exists = fileManager.fileExists(atPath: folderPath + filePath)
print("Path: ", folderPath + filePath)
print("Recipe detail with id \(recipeId)", exists ? "exists" : "does not exist")
return exists
return fileManager.fileExists(atPath: folderPath + filePath)
}
func clearAll() -> Bool {