Lines Matching refs:filename
47 def md5sum(filename): argument
52 f = open(filename, "rb")
86 for filename in value:
87 id_table[filename] = id_count
105 for filename in sorted_filenames:
106 stripped_filename = SRC_DIR_STRIP_RE.sub(r"\1", filename)
107 …print >> output_file, '<li><a href="#id%d">%s</a></li>' % (id_table.get(filename), stripped_filena…
117 for filename in value:
118 print >> output_file, "%s <br/>" % (SRC_DIR_STRIP_RE.sub(r"\1", filename))
143 for filename in value:
144 print >> output_file, SRC_DIR_STRIP_RE.sub(r"\1", filename)
158 for filename in files_with_same_hash[file_key]:
159 id_table[filename] = file_key
171 for filename in sorted_filenames:
172 stripped_filename = SRC_DIR_STRIP_RE.sub(r"\1", filename)
173 …print >> output_file, '<file-name contentId="%s">%s</file-name>' % (id_table.get(filename), stripp…
180 for filename in sorted_filenames:
181 file_key = id_table.get(filename)
186 …tent contentId="%s"><![CDATA[%s]]></file-content>' % (file_key, html_escape(open(filename).read()))
253 filename = os.path.join(root, file)
254 file_md5sum = md5sum(filename)
255 files_with_same_hash[file_md5sum].append(filename)