Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 22 lines (17 sloc) 558 Bytes
#!/usr/bin/env python
import os
def metadata_files():
for dirpath, dirnames, filenames in os.walk('store'):
for f in filenames:
if f != "metadata.nt":
yield os.path.join(dirpath, f)
def aggregate():
for metadata_file in metadata_files():
for line in open(metadata_file):
# ignore things that aren't about a specific URI
if not line.startswith("<>"):
line = line.strip()
print line
if __name__ == "__main__":