pub async fn exists(&self, filename: &str) -> bool {
        self.entries()
            .await
            .expect("Could not get entries from directory.")
            .iter()
            .any(|s| s == filename)
    }
// Checks if a file exists in this directory.
// Function is not recursive. Does not check subdirectories.
Checks if a file exists in this directory.
Function is not recursive. Does not check subdirectories.
Checks if a file exists in this directory . Function is not recursive . Does not check subdirectories .
pub async fn exists(&self, filename: &str) -> bool {
        self.entries()
            .await
            .expect("Could not get entries from directory.")
            .iter()
            .any(|s| s == filename)
    }
pub async fn exists ( & self , filename : & str ) -> bool { self . entries ( ) . await . expect ( " " ) . iter ( ) . any ( | s | s == filename ) }
Checks if a file exists in this directory.
Checks if a file exists in this directory .
&self
filename
&str
&self
filename
&str