hermes_runtime_components/traits/fs/
create_dir.rs

1use cgp::prelude::*;
2
3use crate::traits::fs::file_path::HasFilePathType;
4
5#[derive_component(DirCreatorComponent, DirCreator<Runtime>)]
6#[async_trait]
7pub trait CanCreateDir: HasFilePathType + HasErrorType {
8    async fn create_dir(&self, dir_path: &Self::FilePath) -> Result<(), Self::Error>;
9}