Mine
public cpp v1 · immutableint StdFile::isDirectory(const char *path) { ReadDir testForDir(path, "*.", 0/*don't skip dots*/); // using ReadDir to test for dir? if (testForDir.next()) { // the first file you get if you don't skip dots is your own self if you're a dir. return testForDir.isDir(); } return FALSE;}