Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
512
bool 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
519
bool path_is_dir(const char *path)
520
{
Callers
4
main
Function · 0.85
main
Function · 0.85
read_hsm_passphrase
Function · 0.85
has_all_subdaemons
Function · 0.85
Calls
1
stat
Class · 0.70
Tested by
1
main
Function · 0.68