Simplify images, tag overview

This commit is contained in:
Christoph Hagen
2025-01-04 08:44:26 +01:00
parent 4d4275e072
commit 22e7d9a05a
49 changed files with 603 additions and 509 deletions

View File

@ -28,6 +28,10 @@ struct SecurityBookmark {
// MARK: Write
func fullPath(to relativePath: String) -> URL {
url.appending(path: relativePath, directoryHint: .notDirectory)
}
/**
Write the data of an encodable value to a relative path in the content folder,
or delete the file if nil is passed.
@ -68,7 +72,7 @@ struct SecurityBookmark {
createParentFolder: Bool = true,
ifFileExists overwrite: OverwriteBehaviour = .writeIfChanged) -> Bool {
perform { url in
let file = url.appending(path: relativePath, directoryHint: .notDirectory)
let file = fullPath(to: relativePath)
if exists(file) {
switch overwrite {