Improve storage, paths
This commit is contained in:
@ -3,6 +3,10 @@ import Foundation
|
||||
extension Content {
|
||||
|
||||
func saveToDisk() throws {
|
||||
guard storageIsInitialized else {
|
||||
print("Storage not initialized, not saving content")
|
||||
return
|
||||
}
|
||||
//print("Starting save")
|
||||
for page in pages {
|
||||
try storage.save(pageMetadata: page.pageFile, for: page.id)
|
||||
|
Reference in New Issue
Block a user