StatementFileValidator
public enum StatementFileValidator
Helps validate if all statements are present based on the files
-
checkStatementsFrom(folder:
AsynchronousstatementNames: ) Function to check if all statements are present in a specific folder
It will first detect the filenames used and then the frequency they occur. It can identify different yearly and monthly statements in the same folder. Lastly it will check if any statements are missing in between.
Declaration
Swift
public static func checkStatementsFrom(folder: URL, statementNames: [String]) async throws -> [StatementResult]
Parameters
folder
folder to check
statementNames
part of file names to recognize
Return Value
Array of StatementResult for identified statement filename in the folder.