Function
path_is_file
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 | { |