Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
519
bool 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
526
char **path_split(const tal_t *ctx, const char *path)
527
{
Callers
1
main
Function · 0.85
Calls
1
stat
Class · 0.70
Tested by
1
main
Function · 0.68