From 92bab46fec499f41004423ecf4164876b0f522d7 Mon Sep 17 00:00:00 2001 From: rlbr Date: Wed, 28 Nov 2018 14:41:20 -0600 Subject: [PATCH] added fs class --- fs_class.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 fs_class.py diff --git a/fs_class.py b/fs_class.py new file mode 100644 index 0000000..477f6a8 --- /dev/null +++ b/fs_class.py @@ -0,0 +1,23 @@ +#/usr/bin/python +def hash_file(path): + +class fs: + def __init__(self,top,db_path=None,hash_threshold=1024**2): + 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