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

Function is_present

scripts/config/confdata.c:24–29  ·  view source on GitHub ↗

return true if 'path' exists, false otherwise */

Source from the content-addressed store, hash-verified

22
23/* return true if 'path' exists, false otherwise */
24static bool is_present(const char *path)
25{
26 struct stat st;
27
28 return !stat(path, &st);
29}
30
31/* return true if 'path' exists and it is a directory, false otherwise */
32static bool is_dir(const char *path)

Callers 1

conf_write_autoconfFunction · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected