Download crates/forge_infra/src/fs_create_dirs.rs from SaylorTwift/forgecode: direct link, hf CLI and curl.
- Browser
- Download file 330 Bytes
-
https://huggingface.co/SaylorTwift/forgecode/resolve/main/crates/forge_infra/src/fs_create_dirs.rs
- Command line
-
hf download hf://SaylorTwift/forgecode/crates/forge_infra/src/fs_create_dirs.rs
-
curl -L -o fs_create_dirs.rs https://huggingface.co/SaylorTwift/forgecode/resolve/main/crates/forge_infra/src/fs_create_dirs.rs
330 Bytes
| use std::path::Path; | |
| use forge_app::FileDirectoryInfra; | |
| pub struct ForgeCreateDirsService; | |
| impl FileDirectoryInfra for ForgeCreateDirsService { | |
| async fn create_dirs(&self, path: &Path) -> anyhow::Result<()> { | |
| Ok(forge_fs::ForgeFS::create_dir_all(path).await?) | |
| } | |
| } | |