def _overlapping(files):
segments = set()<EOL>for path in files:<EOL><INDENT>seg = file_segment(path)<EOL>for s in segments:<EOL><INDENT>if seg.intersects(s):<EOL><INDENT>return True<EOL><DEDENT><DEDENT>segments.add(seg)<EOL><DEDENT>return False<EOL>
Quick method to see if a file list contains overlapping files