in src/main/python/s3mper.py [0:0]
def add(self, paths):
""" Adds a list of Paths to the file metastore and returns True on success.
Example:
s.add([path1, path2]) -> True
"""
if self.disabled:
return
epoch = self.__time_now()
paths = self.__as_paths(paths)
with self.db.batch_write() as batch:
for path in paths:
batch.put_item(data={ 'path':path.parent().normalize(), 'file':path.filename(), 'epoch':epoch })