diff --git a/src/main.rs b/src/main.rs index 2036ea7..fff9492 100755 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,5 @@ use clap::{Parser, Subcommand}; +//use ini::Ini; use lofty::file::TaggedFileExt; use lofty::probe::Probe; use std::ffi::OsStr; @@ -36,6 +37,22 @@ enum Commands { } fn main() -> Result<(), Box> { + //let mut conf = Ini::new(); + //conf.with_section(Some("General")) + // .set("target_directory", ""); + ////conf.write_to_file("conf.ini").unwrap(); + // + //let conf = Ini::load_from_file("conf.ini").unwrap(); + // + //let section = conf.section(Some("General")).unwrap(); + //println!("target_dir={:?}", section.get("target_directory")); + // + //for (_sec, prop) in &conf { + // for (key, value) in prop.iter() { + // println!("{:?}:{:?}", key, value); + // } + //} + // let args = Args::parse(); let extra_files = [ "jpg", "png", "pdf", "log", "cue", "mp4", "lrc", "txt", "docx",