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 to hold a list of File Paths
  • A Struct which can help generate a Hash on its fields
  • A Lazy static reference which hold a RwLock on a bool used for verbose printing

Traits§

  • A simple trait to cast implementors to f64. Pretty useful in Function which takes Generic arguments
  • A simple trait to return length of its implementors. Pretty useful in Function which takes Generic arguments

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 paths
  • 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