MCPcopy Create free account
hub / github.com/FreeFem/FreeFem-sources / ff_isdir

Function ff_isdir

plugin/seq/shell.cpp:106–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106long ff_isdir(string *c) {
107 struct stat buff;
108
109 if (0 == stat(c->c_str( ), &buff)) {
110 return (buff.st_mode & S_IFDIR) ? 1 : 0;
111 } else {
112 return -1; // err
113 }
114}
115
116DIR **OpenDir(DIR **pp, string *n) {
117 *pp = opendir(n->c_str( ));

Callers 1

copyfileFunction · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected