Create / and return it in canonical form. */
| 516 | |
| 517 | /* Create <parent>/<name> and return it in canonical form. */ |
| 518 | static bool ws_mkdir_canonical(const char *parent, const char *name, char *out, size_t out_sz) { |
| 519 | char made[WS_T_PATH]; |
| 520 | if (!ws_join(made, sizeof(made), parent, name) || cbm_mkdir(made) != 0) { |
| 521 | return false; |
| 522 | } |
| 523 | return cbm_canonical_path(made, out, out_sz) == 1; |
| 524 | } |
| 525 | |
| 526 | static void ws_manifest_write(const char *base, const char *body) { |
| 527 | char path[WS_T_PATH]; |
no test coverage detected