mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-28 07:18:29 +01:00
dvc: stop using checksumdir and use our own way of checksuming a dir
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -28,6 +28,12 @@ def file_md5(fname):
|
||||
return (None, None)
|
||||
|
||||
|
||||
def bytes_md5(byts):
|
||||
hasher = hashlib.md5()
|
||||
hasher.update(byts)
|
||||
return hasher.hexdigest()
|
||||
|
||||
|
||||
def cached_property(func):
|
||||
'''A decorator for caching properties in classes.'''
|
||||
def get(self):
|
||||
|
||||
Reference in New Issue
Block a user