let ensure_directory ?timeout ?with_shell t ~path = let cmd = fmt "mkdir -p %s" Path.(to_string_quoted path) in run_shell_command ?timeout ?with_shell t cmd