// Copyright (c) 2025 salus developers
//
// Licensed under the Apache License, Version 2.0
// <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0> or the MIT
// license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. All files in the project carrying such notice may not be copied,
// modified, or distributed except according to those terms.
use ;
use ;
use crateError;
pub
/// Create the parent directory of `path` if it does not already exist.
///
/// The per-user `dirs2` locations the agent defaults to are not guaranteed to
/// exist, so any file we create there (the log) needs its parent created first.
pub