Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 1.21 KB

SameFile.md

File metadata and controls

18 lines (12 loc) · 1.21 KB

Same File

ImageStore use Sha1 hashing to detect same files.

To detect same files, first add all files being checked to database, then call Measure-ImageStoreFile or Measure-ImageStoreFiles to calculate Sha1 hash, finally call Compare-ImageStoreSameFiles to find all same files.

Same files will be grouped into Same File Groups based on Sha1 hashing result.

Same File Group

All files with same Sha1 hashing result will be placed in one Same File Group.

Ignored

If a same file record is marked as ignored, it won't be treated as the point file is same as others in the same group. Uses this function when need to keep some files even they are same with others.

Remove Same Files

After detection, you could use Select-ImageStoreSameFile to return same files. This cmdlet powered with algorithm to deal with same files. See the cmdlet document for details. Combines the result with Remove-ImageStoreFile to delete the same files found.

Cmdlets