Add more file properties, organize storage, add video block

This commit is contained in:
Christoph Hagen
2025-01-06 15:31:19 +01:00
parent 96c0a75c2f
commit 6cf310d849
25 changed files with 712 additions and 219 deletions

View File

@ -162,13 +162,17 @@ struct SecurityBookmark {
ifFileExists overwrite: OverwriteBehaviour = .fail) -> Bool {
with(relativePath: relativeSource) { source in
if !exists(source) {
return failIfMissing
if !failIfMissing { return true }
print("ContentScope: Could not find file \(relativeSource) to move")
return false
}
let destination = url.appending(path: relativeDestination)
if exists(destination) {
switch overwrite {
case .fail: return false
case .fail:
print("ContentScope: Could not move file \(relativeSource), file exists")
return false
case .skip: return true
case .write: break
case .writeIfChanged: