canonicalize album path

This commit is contained in:
Nick Pegg 2025-05-07 20:58:51 -07:00
parent 0d9d632195
commit b38ad60e15

View file

@ -6,12 +6,11 @@ use std::path::Path;
fn main() -> anyhow::Result<()> {
env_logger::init();
let cli = Cli::parse();
// TODO: canonicalize path? To allow ~/foo/bar
let album_path = Path::new(&cli.album_path);
let album_path = Path::new(&cli.album_path).canonicalize()?;
match cli.subcommand {
Commands::Init {} => {
make_skeleton(album_path)?;
make_skeleton(&album_path)?;
println!("Album created in {}", album_path.display());
}
Commands::Generate { full } => {