pub fn new(path: &'a Path) -> Option<Self> {
        match path.exists() && path.is_file() {
            true => Some(Self { path: path }),
            _ => None,
        }
    }
/// Create instance of File class.
///
/// ## Arguments
///
/// - `path` - target file path. Must be file not dir.
///
/// ## Returns
///
/// Instance. Returns `None` if path of arguments not file path.
Create instance of File class.
Create instance of File class .
pub fn new(path: &'a Path) -> Option<Self> {
        match path.exists() && path.is_file() {
            true => Some(Self { path: path }),
            _ => None,
        }
    }
pub fn new ( path : & ' a Path ) -> Option < Self > { match path . exists ( ) && path . is_file ( ) { true => Some ( Self { path : path } ) , _ => None , } }
Create instance of File class.
Create instance of File class .
path
&'a Path
Instance. Returns `None` if path of arguments not file path.
Instance . Returns ` None ` if path of arguments not file path .
path
&'a Path
target file path. Must be file not dir.
target file path . Must be file not dir .