|
|
|
@ -1,8 +1,8 @@ |
|
|
|
#/usr/bin/python |
|
|
|
def hash_file(path): |
|
|
|
|
|
|
|
def hash_file(path,hash_if_less,sample): |
|
|
|
return _imohash(path,hash_if_less,sample) |
|
|
|
class fs: |
|
|
|
def __init__(self,top,db_path=None,hash_threshold=1024**2): |
|
|
|
def __init__(self,top,db_path=None,hash_threshold=1024**2,sample=128*1024): |
|
|
|
self.top=top |
|
|
|
self.hash_threshold=hash_threshold |
|
|
|
if db_path is not None: |
|
|
|
|