This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
|
#include <dirent.h>
|
|
#include <errno.h>
|
|
|
|
int checkDir(char* directory) {
|
|
DIR *dir = opendir (directory);
|
|
if (dir) {
|
|
closedir (dir);
|
|
return 1;
|
|
} else if (ENOENT == errno) {
|
|
return 0;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|