Skip to content

Commit

Permalink
Merge pull request #29 from sgibson91/main
Browse files Browse the repository at this point in the history
  • Loading branch information
sgibson91 authored Feb 26, 2022
2 parents 0c6491e + c772fe0 commit a6394da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deduplify/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

from incremental import Version

__version__ = Version("deduplify", 0, 1, 3)
__version__ = Version("deduplify", 0, 1, 4)
__all__ = ["__version__"]
3 changes: 2 additions & 1 deletion deduplify/hash_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from typing import Tuple

logger = logging.getLogger()
EXPANDED_USER = os.path.expanduser("~")


def hashfile(path: str, blocksize: int = 65536) -> Tuple[str, str]:
Expand Down Expand Up @@ -47,7 +48,7 @@ def hashfile(path: str, blocksize: int = 65536) -> Tuple[str, str]:

f.close()

return hasher.hexdigest(), path
return hasher.hexdigest(), path.replace(EXPANDED_USER, "~")


def filter_dict(results: dict) -> Tuple[dict, dict]:
Expand Down

0 comments on commit a6394da

Please sign in to comment.