folderbase_core/
inspection.rs1use std::path::Path;
2
3use crate::{InspectionReport, Result, folder_analysis::analyze_folder};
4
5pub fn inspect(root: impl AsRef<Path>) -> Result<InspectionReport> {
10 let analysis = analyze_folder(root.as_ref())?;
11 Ok(InspectionReport {
12 root: analysis.root,
13 inventory: analysis.inventory,
14 classified_paths: analysis.classified_paths,
15 git_repositories: analysis.git_repositories,
16 context_files: analysis.context_files,
17 boundary_hints: analysis.boundary_hints,
18 reconstructable_trees: analysis.reconstructable_trees,
19 nested_folderbases: analysis.nested_folderbases,
20 warnings: analysis.warnings,
21 })
22}