summaryrefslogtreecommitdiffstats
path: root/combox
diff options
context:
space:
mode:
authorSiddharth Ravikumar <sravik@bgsu.edu>2015-04-01 15:56:51 -0400
committerSiddharth Ravikumar <sravik@bgsu.edu>2015-04-01 15:56:51 -0400
commitd867cd1bc3cc0bd83d3e6727375f7f7fe689e379 (patch)
treeb0fcac1e1010bb72022383ef37299256a3fe5738 /combox
parent8a4b1a452d96effb493b8027520bb95bb87db3fd (diff)
renamed dict names in combox.silo.ComboxSilo from shard_* -> file_*
The main zarking reason for the name is that we might also want to track directories apart from shards in the node directories. modified: combox/silo.py modified: tests/silo_test.py
Diffstat (limited to 'combox')
-rw-r--r--combox/silo.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/combox/silo.py b/combox/silo.py
index a6abce5..38de523 100644
--- a/combox/silo.py
+++ b/combox/silo.py
@@ -40,8 +40,8 @@ class ComboxSilo(object):
self.db = pickledb.load(self.silo_path, True)
## things we need for housekeep the node directory.
- self.node_dicts = ['shard_created', 'shard_modified', 'shard_moved',
- 'shard_deleted']
+ self.node_dicts = ['file_created', 'file_modified', 'file_moved',
+ 'file_deleted']
# created the dicts if not already created.
for ndict in self.node_dicts:
@@ -147,7 +147,7 @@ class ComboxSilo(object):
"""
Update information about the shard of `file_'.
- type_: 'shard_created', 'shard_modified', 'shard_moved', 'shard_deleted'
+ type_: 'file_created', 'file_modified', 'file_moved', 'file_deleted'
file_: path of the file_ in combox directory.
"""
@@ -166,7 +166,7 @@ class ComboxSilo(object):
"""
Returns a number denoting the number of node directories in which the file_'s shard was created/modified/moved/deleted.
- type_: 'shard_created', 'shard_modified', 'shard_moved', 'shard_deleted'
+ type_: 'file_created', 'file_modified', 'file_moved', 'file_deleted'
file_: path of the file_ in combox directory.
"""
self.reload()