/// inputFile can only be file. May be not-yet-existing file for expected input. Directories are handled on process level.
/// inputFile can only be file. May be not-yet-existing file for expected input. Directories are handled on process level. You should call this before calling writeError on inputFile, so the error is also linked from the outputFile.