hermes_runtime_components/traits/fs/copy_file.rs
1use cgp::prelude::*;
2
3use crate::traits::fs::file_path::HasFilePathType;
4
5#[derive_component(FileCopierComponent, FileCopier<Runtime>)]
6#[async_trait]
7pub trait CanCopyFile: HasFilePathType + HasErrorType {
8 async fn copy_file(
9 &self,
10 source_path: &Self::FilePath,
11 destination_path: &Self::FilePath,
12 ) -> Result<(), Self::Error>;
13}