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 Directorypub fn new(base: PathBuf, path: PathBuf) -> Directory[src]
pub fn new(base: PathBuf, path: PathBuf) -> DirectoryCreate a new directory
pub fn is_visible(&self, entry: &Result<DirEntry>) -> bool[src]
pub fn is_visible(&self, entry: &Result<DirEntry>) -> boolIs this entry visible from this directory?