walkthrough 0.2.0

A Rust crate for recursive directory traversal.
Documentation
mod state;
#[cfg(unix)]
mod unix;
#[cfg(windows)]
mod windows;

use std::fs;

pub use state::{Sync, Walker};

use crate::{DirEntry, Error, Result};

impl DirEntry<Sync> {
    /// Returns the metadata for this entry.
    ///
    /// When `follow_links` is enabled the metadata reflects the symlink target;
    /// otherwise it reflects the symlink itself.
    pub fn metadata(&self) -> Result<fs::Metadata, Error> {
        self.metadata_impl()
    }

    /// Returns `true` if this entry is considered hidden by the operating system.
    pub fn is_hidden(&self) -> bool {
        self.is_hidden_impl()
    }
}