Crate common

source ·
Expand description

This library crate is only for internal use. Do not use it in your own projects independently.

Macros§

  • A simple macro which prints two items only when verbose printing is specified. VERBOSE is a RwLock

Structs§

  • A Lazy static reference to hold a List of Directory Paths
  • A Lazy static reference which hold the file sizes in bytes
  • A Lazy static reference to hold a list of File Paths
  • A Struct which can help generate a Hash on its fields
  • Struct which holds SortBy and OrderBy User Options

Enums§

Statics§

Functions§

  • This function can be used for all sorts of confirmation input from the user
  • This free standing function helps to display all the duplicate file and their respective groups file sizes. It filters for duplicate files from the provided arc_vec_paths HashMap, and figures out the file sizes for each group based on arc_capacities HashMap. Once the filtering and printing to screen is completed, it return the total number of duplicate records count
  • Used to recursively capture path entries and capture them separately in two separate Vecs. DIR_LIST is used to hold Directory paths. FILE_LIST is used to hold File.
  • This function helps in sorting the vec of Hash digest and filePath. Once the sort is finished it will group Duplicates with the help of HashMap and Parallel Iterator
  • DIR_LIST is used to hold Directory paths. FILE_LIST is used to hold File paths. But uses WalkDir and Rayon to make it fast.