fs_is_file

int fs_is_file(const char *path)

Checks if a path corresponds to a file.

if (!fs_is_file("./foo.txt"))
{
    print("path is not a file");
}
else
{
    print("path is a file");
}

Parameters

path[in] Some null-terminated path

Returns

If path points to an existing file.