combox

split and encrypted files between online file storage providers
git clone git://git.ricketyspace.net/combox.git
Log | Files | Refs

commit 8de1ec5982c71e06ebf19706696411534e694307
parent f5dca4c9e328c6d567977507d30f72b3159ff0be
Author: Siddharth Ravikumar <sravik@bgsu.edu>
Date:   Tue, 27 Jan 2015 21:52:19 -0500

combox/silo.py: new method `keys()' in ComboxSilo class.

Diffstat:
combox/silo.py | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/combox/silo.py b/combox/silo.py @@ -53,13 +53,19 @@ class ComboxSilo(object): return self.db.set(filep, fhash) + def keys(self): + """Returns a list of all keys in db.""" + # this is why Redis or some other key-value DB should be used + # instead of PickleDB + return self.db.db.keys() + + def remove(self, filep): """Removes filep from db. filep: path to the file in combox directory. """ - return self.db.rem(filep)