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

Function path_is_file

ccan/ccan/tal/path/path.c:512–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510}
511
512bool path_is_file(const char *path)
513{
514 struct stat st;
515
516 return stat(path, &st) == 0 && S_ISREG(st.st_mode);
517}
518
519bool path_is_dir(const char *path)
520{

Callers 4

mainFunction · 0.85
mainFunction · 0.85
read_hsm_passphraseFunction · 0.85
has_all_subdaemonsFunction · 0.85

Calls 1

statClass · 0.70

Tested by 1

mainFunction · 0.68