pub struct FsReader { /* private fields */ }Expand description
Real filesystem reader with hierarchical gitignore-style follow_rules support.
follow_rules names ignore files (e.g. .gitignore) that are honored at
EVERY directory level, matching git: a .gitignore in a subdirectory applies
to that subtree, and a deeper file overrides a shallower one. The matchers are
discovered by walking the tree once here, skipping exclude_names directories,
symlinks, and any subtree already ignored by a shallower rule (so large
build-artifact trees like node_modules are never descended into).
Implementations§
Trait Implementations§
Source§impl DirReader for FsReader
impl DirReader for FsReader
Source§fn read_dir(&self, path: &Path) -> Result<Vec<DirEntry>>
fn read_dir(&self, path: &Path) -> Result<Vec<DirEntry>>
List immediate children of a directory.
Source§fn is_executable(&self, path: &Path) -> Result<bool>
fn is_executable(&self, path: &Path) -> Result<bool>
Check whether a file has the executable bit set.
Auto Trait Implementations§
impl Freeze for FsReader
impl RefUnwindSafe for FsReader
impl Send for FsReader
impl Sync for FsReader
impl Unpin for FsReader
impl UnsafeUnpin for FsReader
impl UnwindSafe for FsReader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more