socket9 0.1.0-alpha.1

Extended untilities for the networking/unix sockets and raw network sockets
Documentation

use std::path::PathBuf;

use tempfile::TempDir;

pub 
fn make_temp_dir(path: &str) -> (PathBuf, TempDir)
{
    let dir = tempfile::tempdir().unwrap();
    let path = dir.path().join(path);

    return (path, dir);
}

pub 
fn make_temp_dir_no() -> TempDir
{
    let dir = tempfile::tempdir().unwrap();

    return dir;
}