cktool 1.4.0

coomer.st and kemono.cr downloader tool
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use tokio::{fs::File, io::AsyncWriteExt};

pub struct Log;

impl Log {
    /// This func will save failed url into file.
    pub async fn save_failed(failed_url: &[String], path: &str) {
        if let Ok(mut file) = File::create(path).await {
            for content in failed_url {
                let _ = file.write_all(format!("{}\n", content).as_bytes()).await;
            }
        }
    }
}