pub struct FileGrouper { /* private fields */ }Expand description
File grouper for organizing files by prefix into subdirectories
Implementations§
Source§impl FileGrouper
impl FileGrouper
Sourcepub fn new(options: GroupOptions) -> Self
pub fn new(options: GroupOptions) -> Self
Creates a new file grouper with the given options
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Creates a grouper with default options
Sourcepub fn process(&self, path: &Path) -> Result<GroupStats>
pub fn process(&self, path: &Path) -> Result<GroupStats>
Processes a directory, grouping files by prefix into subdirectories Returns GroupStats for backward compatibility
Sourcepub fn process_with_changes(&self, path: &Path) -> Result<GroupResult>
pub fn process_with_changes(&self, path: &Path) -> Result<GroupResult>
Processes a directory and returns full result with change tracking
Auto Trait Implementations§
impl Freeze for FileGrouper
impl RefUnwindSafe for FileGrouper
impl Send for FileGrouper
impl Sync for FileGrouper
impl Unpin for FileGrouper
impl UnsafeUnpin for FileGrouper
impl UnwindSafe for FileGrouper
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