async fn init_socket_file(socket_path: &Path) {
    tokio::fs::create_dir_all(
        socket_path
            .parent()
            .expect("Provided socket path is already root or prefix"),
    )
    .await
    .expect(&format!(
        "Failed to create missing folders in path: {:?} Please check the permissions.",
        socket_path
    ));
    let _ = tokio::fs::remove_file(socket_path).await;
}
/// Creates the folders required by the path, if not existing. Removes previous socket file if existing.
Creates the folders required by the path, if not existing. Removes previous socket file if existing.
Creates the folders required by the path if not existing . Removes previous socket file if existing .
async fn init_socket_file(socket_path: &Path) {
    tokio::fs::create_dir_all(
        socket_path
            .parent()
            .expect("Provided socket path is already root or prefix"),
    )
    .await
    .expect(&format!(
        "Failed to create missing folders in path: {:?} Please check the permissions.",
        socket_path
    ));
    let _ = tokio::fs::remove_file(socket_path).await;
}
async fn init_socket_file ( socket_path : & Path ) { tokio :: fs :: create_dir_all ( socket_path . parent ( ) . expect ( " " ) , ) . await . expect ( & format ! ( " " socket_path ) ) ; let _ = tokio :: fs :: remove_file ( socket_path ) . await ; }
Creates the folders required by the path, if not existing.
Creates the folders required by the path if not existing .
socket_path
&Path