use anyhow::{anyhow, Result};
use std::path::Path;
pub fn check_directory_not_exists(path: &Path) -> Result<()> {
if path.exists() {
return Err(anyhow!(
"Directory '{}' already exists.\n\
Please choose a different project name or remove the existing directory.",
path.display()
));
}
Ok(())
}