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
470 B

7 years ago
  1. #/usr/bin/python
  2. def hash_file(path):
  3. class fs:
  4. def __init__(self,top,db_path=None,hash_threshold=1024**2):
  5. self.top=top
  6. self.hash_threshold=hash_threshold
  7. if db_path is not None:
  8. self.db_path=db_path
  9. else:
  10. self.db_path = 'fs.db'
  11. def from_db(self,top,db_path,_id=0):
  12. pass
  13. def write_to_db(self):
  14. pass
  15. def morph(self,other):
  16. pass
  17. def backup(self,other):
  18. pass