esetres 0.1.1

A self hosted file storage server.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::path::Path;

use crate::config;

pub async fn run(name: &str) -> Result<(), std::io::Error> {
    let config = config::get();
    let path = Path::new(&config.root_directory).join(name);
    
    tokio::fs::remove_dir_all(path).await?;

    println!("Removed {name}.");

    Ok(())
}