pub async fn has_file<S: Into<PathBuf>>(&self, sub_path: S) -> bool {
        let p = PathBuf::from(&self.root);
        if let Ok(meta) = async_std::fs::metadata(p.join(sub_path.into())).await {
            meta.is_file()
        } else {
            false
        }
    }
///
/// Checks whether an environment contains the file specified
///
Checks whether an environment contains the file specified
Checks whether an environment contains the file specified
pub async fn has_file<S: Into<PathBuf>>(&self, sub_path: S) -> bool {
        let p = PathBuf::from(&self.root);
        if let Ok(meta) = async_std::fs::metadata(p.join(sub_path.into())).await {
            meta.is_file()
        } else {
            false
        }
    }
pub async fn has_file < S : Into < PathBuf > > ( & self , sub_path : S ) -> bool { let p = PathBuf :: from ( & self . root ) ; if let Ok ( meta ) = async_std :: fs :: metadata ( p . join ( sub_path . into ( ) ) ) . await { meta . is_file ( ) } else { false } }
Checks whether an environment contains the file specified
Checks whether an environment contains the file specified
&self
sub_path
S
&self
sub_path
S