encoding/
main.rs

1use anyhow::Result;
2use file_kitty::encoding::scan_directory;
3use std::path::Path;
4
5#[tokio::main]
6async fn main() -> Result<()> {
7    // Get the path of the example file directory
8    let example_dir = Path::new(env!("CARGO_MANIFEST_DIR"))
9        .join("examples")
10        .join("encoding");
11    
12    println!("Start to scan directory: {}", example_dir.display());
13    scan_directory(example_dir.to_str().unwrap(), false, false).await?;
14    
15    Ok(())
16}