git @ Cat's Eye Technologies The-Dipple / e463a65
Ignore saved-web-page assets; hash on same line as filename. Chris Pressey 9 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
4747
4848 def traverse_directory(directory, sizemap):
4949 for root, dirs, files in os.walk(directory):
50 dirs[:] = [d for d in dirs if not d.endswith('_files')]
5051 for filename in files:
5152 full = os.path.normpath(os.path.join(root, filename))
5253 if os.path.islink(full):
8788 for hash in hashmap:
8889 filenames = sorted(hashmap[hash])
8990 if len(filenames) > 1:
90 print "# %s:" % hash
9191 for filename in filenames:
92 print "# %s" % filename
92 print "%s\t%s" % (hash, filename)
9393 else:
9494 print
9595 for hash in hashmap: