restapi 1.1.14

A secure-by-default rest api using hyper, tokio, bb8, kafka-threadpool, postgres, and prometheus for monitoring
Documentation
//! Module testing if a local file exists
//!
use std::fs;

/// path_exists
///
/// wrapper for checking if a file path exists on disk
///
/// # Arguments
///
/// * `path` - `&str` - file path on disk
///
/// # Examples
///
/// ```rust
/// use restapi::utils::path_exists::path_exists;
/// assert_eq!(path_exists("/tmp/i-exist"), false);
/// ```
pub fn path_exists(path: &str) -> bool {
    fs::metadata(path).is_ok()
}