#include #include "../common/plat.h" int plat_is_dir(const char *path) { DIR *dir; if ((dir = opendir(path))) { closedir(dir); return 1; } return 0; }