diff --git a/fs_class.py b/fs_class.py index 477f6a8..c8c7590 100644 --- a/fs_class.py +++ b/fs_class.py @@ -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: