You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
551 B
23 lines
551 B
#/usr/bin/python
|
|
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,sample=128*1024):
|
|
self.top=top
|
|
self.hash_threshold=hash_threshold
|
|
if db_path is not None:
|
|
self.db_path=db_path
|
|
else:
|
|
self.db_path = 'fs.db'
|
|
|
|
def from_db(self,top,db_path,_id=0):
|
|
pass
|
|
|
|
def write_to_db(self):
|
|
pass
|
|
|
|
def morph(self,other):
|
|
pass
|
|
|
|
def backup(self,other):
|
|
pass
|