| 1499 | } |
| 1500 | |
| 1501 | static int jl_ensure_parent(const char *path) { |
| 1502 | char *parent = jl_parent_directory(path); |
| 1503 | if (!parent) { |
| 1504 | return -1; |
| 1505 | } |
| 1506 | int result = strcmp(parent, ".") == 0 || cbm_mkdir_p(parent, 0755) ? 0 : -1; |
| 1507 | free(parent); |
| 1508 | return result; |
| 1509 | } |
| 1510 | |
| 1511 | static int jl_snapshot_matches_path(const char *path, const char *expected_content, |
| 1512 | size_t expected_length, |
no test coverage detected