create_directory_structure

Function create_directory_structure 

Source
pub fn create_directory_structure(project_path: &Path) -> Result<()>
Expand description

Create the Clean Architecture directory structure

Creates all necessary directories for a Clean Architecture project:

  • src/ - Source code root
  • src/domain/ - Domain layer (entities, repositories)
  • src/application/ - Application layer (services)
  • src/infrastructure/ - Infrastructure layer (repository implementations)
  • src/presentation/ - Presentation layer (HTTP handlers)
  • tests/ - Integration tests

§Arguments

  • project_path - Root path where the project directories will be created

§Errors

Returns an error if any directory creation fails