MCPcopy Create free account
hub / github.com/ElementsProject/lightning / path_is_dir

Function path_is_dir

ccan/ccan/tal/path/path.c:519–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519bool path_is_dir(const char *path)
520{
521 struct stat st;
522
523 return stat(path, &st) == 0 && S_ISDIR(st.st_mode);
524}
525
526char **path_split(const tal_t *ctx, const char *path)
527{

Callers 1

mainFunction · 0.85

Calls 1

statClass · 0.70

Tested by 1

mainFunction · 0.68