Struct actix_web::fs::Directory [−][src]
A directory; responds with the generated directory listing.
Fields
base: PathBuf
Base directory
path: PathBuf
Path of subdirectory to generate listing for
Methods
impl Directory
[src]
impl Directory
pub fn new(base: PathBuf, path: PathBuf) -> Directory
[src]
pub fn new(base: PathBuf, path: PathBuf) -> Directory
Create a new directory
pub fn is_visible(&self, entry: &Result<DirEntry>) -> bool
[src]
pub fn is_visible(&self, entry: &Result<DirEntry>) -> bool
Is this entry visible from this directory?