validateFile

private fun validateFile(fpath: String, fieldname: String, context: ConfigParsable.Context): ErrorUnit.ContextErrorUnit?

Find file with path fpath from the Configuration.Context.provided on the host machine and return ErrorUnit.ContextErrorUnit.FileNotFoundError for missing files.

Parameters

fieldname

Used for generating ErrorUnit.ContextErrorUnit

context

Context for locating fpath