Generate first tag pages
This commit is contained in:
@ -85,9 +85,10 @@ struct AddFileView: View {
|
||||
print("Skipping existing file \(file.uniqueId)")
|
||||
continue
|
||||
}
|
||||
|
||||
guard content.storage.copyFile(at: file.url, fileId: file.uniqueId) else {
|
||||
print("Failed to import file '\(file.uniqueId)' at \(file.url.path())")
|
||||
do {
|
||||
try content.storage.copyFile(at: file.url, fileId: file.uniqueId)
|
||||
} catch {
|
||||
print("Failed to import file '\(file.uniqueId)' at \(file.url.path()): \(error)")
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -55,7 +55,9 @@ struct FileDetailView: View {
|
||||
}
|
||||
|
||||
private func setNewId() {
|
||||
guard file.content.storage.move(file: file.id, to: newId) else {
|
||||
do {
|
||||
try file.content.storage.move(file: file.id, to: newId)
|
||||
} catch {
|
||||
print("Failed to move file \(file.id)")
|
||||
newId = file.id
|
||||
return
|
||||
|
Reference in New Issue
Block a user