add: Display progress meter when hashing files.
* add: Display progress meter when hashing files. * add: Support --json-progress option.
This commit is contained in:
parent
554b307931
commit
42c386fc47
7 changed files with 35 additions and 6 deletions
|
@ -13,6 +13,7 @@
|
|||
module Utility.InodeCache (
|
||||
InodeCache,
|
||||
InodeComparisonType(..),
|
||||
inodeCacheFileSize,
|
||||
|
||||
compareStrong,
|
||||
compareWeak,
|
||||
|
@ -58,6 +59,9 @@ data InodeCachePrim = InodeCachePrim FileID FileSize MTime
|
|||
newtype InodeCache = InodeCache InodeCachePrim
|
||||
deriving (Show)
|
||||
|
||||
inodeCacheFileSize :: InodeCache -> FileSize
|
||||
inodeCacheFileSize (InodeCache (InodeCachePrim _ sz _)) = sz
|
||||
|
||||
{- Inode caches can be compared in two different ways, either weakly
|
||||
- or strongly. -}
|
||||
data InodeComparisonType = Weakly | Strongly
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue