Full generation, file type cleanup
This commit is contained in:
@@ -95,6 +95,12 @@ final class Storage: ObservableObject {
|
||||
return contentScope.readString(at: path)
|
||||
}
|
||||
|
||||
func hasPageContent(for pageId: String, language: ContentLanguage) -> Bool {
|
||||
guard let contentScope else { return false }
|
||||
let path = pageContentPath(page: pageId, language: language)
|
||||
return contentScope.hasFile(at: path)
|
||||
}
|
||||
|
||||
/**
|
||||
Delete all files associated with pages that are not in the given set
|
||||
- Note: This function requires a security scope for the content path
|
||||
|
Reference in New Issue
Block a user