oo-bindgen 0.8.0

DSL-based binding geneator for C, C++, Java, and C#
Documentation
/// Normal filesystem copy + logging
pub(crate) fn copy<P: AsRef<std::path::Path>, Q: AsRef<std::path::Path>>(
    from: P,
    to: Q,
) -> std::io::Result<u64> {
    tracing::info!(
        "Copy: {} to {}",
        from.as_ref().display(),
        to.as_ref().display()
    );
    std::fs::copy(from, to)
}

pub(crate) fn create_dir_all<P: AsRef<std::path::Path>>(path: P) -> std::io::Result<()> {
    tracing::info!("Create dir: {}", path.as_ref().display());
    std::fs::create_dir_all(path)
}

pub(crate) fn remove_dir_all<P: AsRef<std::path::Path>>(path: P) -> std::io::Result<()> {
    tracing::info!("Remove dir: {}", path.as_ref().display());
    std::fs::remove_dir_all(path)
}