use crate::{List, get_current_list, config::Cfg, db::userlist_get_all_downloads, input::Input}; pub async fn download(config: Cfg, input: Input) -> Result<(), Box> { let list = get_current_list(config.clone())?; let links = userlist_get_all_downloads(config.clone(), list.clone().id)?; download_links(config, input, list, links).await?; Ok(()) } async fn download_links(_config: Cfg, _input: Input, _current_list: List, _links: Vec) -> Result> { println!("NO DL IMPLEMENTATION FOR DOWNLOAD YET"); //TODO copy dl from update if possible /* let dl_path = String::from(¤t_list.download_folder); if input.clean { let dl_path = ¤t_list.download_folder; println!("Cleaning {}", dl_path); for entry in std::fs::read_dir(dl_path)? { let entry = entry?; std::fs::remove_file(entry.path())?; } } */ Ok(String::new()) }