Add route files, show overview

This commit is contained in:
Christoph Hagen
2025-08-21 20:26:22 +02:00
parent 43b761b593
commit 9ec207014c
14 changed files with 938 additions and 3 deletions

View File

@@ -125,6 +125,15 @@ final class FileResource: Item, LocalizedItem {
return true
}
@discardableResult
func save(fileData: Foundation.Data) -> Bool {
guard content.storage.save(fileData: fileData, for: identifier) else {
return false
}
modifiedDate = .now
return true
}
func dataContent() -> Foundation.Data? {
content.storage.fileData(for: identifier)
}