assert_file_exists

Assert File Exists

Checks that a regular file exists at the given path.

Parameters

Returns

True if the file exists.

Examples

assert_file_exists("output.csv")
assert_file_exists("report.html", "report generation failed")

See Also

file_exists, assert