file_exists

Check if file exists

Checks if a regular file exists at the given path. Returns false if the path is a directory or does not exist.

Parameters

Returns

True if it’s a regular file.

Examples

file_exists("data.csv")