All pastes #473969 Raw Edit

Mine

public cpp v1 · immutable
·published 2007-05-06 14:55 UTC
rendered paste body
int 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;}