pub struct Scanner;Expand description
Discovers markdown files in configured repository roots.
Runs a parallel walk for each root directory, sending discovered
.md files through a channel for collection and sorting.
Implementations§
Source§impl Scanner
impl Scanner
Sourcepub fn discover(config: &OkcConfig) -> Result<Vec<FileRecord>, LimitError>
pub fn discover(config: &OkcConfig) -> Result<Vec<FileRecord>, LimitError>
Discover all markdown files under configured roots.
Returns a sorted vector of FileRecord with path, size, and mtime.
Respects exclude patterns, size limits, and symlink settings from config.
Auto Trait Implementations§
impl Freeze for Scanner
impl RefUnwindSafe for Scanner
impl Send for Scanner
impl Sync for Scanner
impl Unpin for Scanner
impl UnsafeUnpin for Scanner
impl UnwindSafe for Scanner
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