MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / create_directories

Method create_directories

aiscript/src/project.rs:57–68  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

55 }
56
57 fn create_directories(&self) -> Result<(), String> {
58 let dirs = vec!["lib", "routes"];
59
60 for dir in dirs {
61 let dir_path = self.project_path.join(dir);
62 fs::create_dir_all(&dir_path).map_err(|e| {
63 format!("Failed to create directory '{}': {}", dir_path.display(), e)
64 })?;
65 }
66
67 Ok(())
68 }
69
70 fn create_project_toml(&self) -> Result<(), String> {
71 let toml_path = self.project_path.join("project.toml");

Callers 1

generateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected