Method
scanFileForProtectedAreas(_:)
Scans a file for protected areas before regeneration.
@MainActor func scanFileForProtectedAreas(_ path: String) async throws
Parameters
path-
The file path to scan
Discussion
This should be called before generating to a file that may already exist, to preserve any protected areas in the existing file.