Skip to content

Commit

Permalink
Do not match files based on CRC alone
Browse files Browse the repository at this point in the history
  • Loading branch information
bicobus committed Feb 10, 2020
1 parent 4ca5cd7 commit 38de858
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qmm/filehandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,8 @@ def file_status(file: bucket.FileMetadata) -> int:
or _bad_directory_structure(file.path_as_posix())
or (file.pathobj.suffix and _bad_suffix(file.pathobj.suffix))):
return FILE_IGNORED
if bucket.with_loosefiles(file, check_type=1):
if (bucket.with_loosefiles(file, check_type=1)
and bucket.with_loosefiles(file, check_type=3)):
return FILE_MATCHED
if (bucket.with_loosefiles(file, check_type=3)
and not bucket.with_loosefiles(file, check_type=1)):
Expand Down

0 comments on commit 38de858

Please sign in to comment.