Function exists(const std::string&)

Function Documentation

bool exists(const std::string &path)

Checks if a given file or directory is valid.

Parameters:

path – path of the file or directory to be checked.

Returns:

Whether the file or directory exists or not.