MCPcopy Create free account
hub / github.com/Entware/Entware / is_dir

Function is_dir

scripts/config/confdata.c:32–40  ·  view source on GitHub ↗

return true if 'path' exists and it is a directory, false otherwise */

Source from the content-addressed store, hash-verified

30
31/* return true if 'path' exists and it is a directory, false otherwise */
32static bool is_dir(const char *path)
33{
34 struct stat st;
35
36 if (stat(path, &st))
37 return false;
38
39 return S_ISDIR(st.st_mode);
40}
41
42/* return true if the given two files are the same, false otherwise */
43static bool is_same(const char *file1, const char *file2)

Callers 2

make_parent_dirFunction · 0.85
conf_writeFunction · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected