Add more file properties, organize storage, add video block
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user