def print_big_dir_and_big_file(self, top_n=<NUM_LIT:5>):
self.assert_is_dir_and_exists()<EOL>size_table1 = sorted(<EOL>[(p, p.dirsize) for p in self.select_dir(recursive=False)],<EOL>key=lambda x: x[<NUM_LIT:1>],<EOL>reverse=True,<EOL>)<EOL>for p1, size1 in size_table1[:top_n]:<EOL><INDENT>print("<STR_LIT>".format(repr_data_size(size1), p1.abspath))<EOL>size_table2 = sorted(<EOL>[(p, p.size) for p in p1.select_file(recursive=True)],<EOL>key=lambda x: x[<NUM_LIT:1>],<EOL>reverse=True,<EOL>)<EOL>for p2, size2 in size_table2[:top_n]:<EOL><INDENT>print("<STR_LIT>".format(<EOL>repr_data_size(size2), p2.abspath))<EOL><DEDENT><DEDENT>
Print ``top_n`` big dir and ``top_n`` big file in each dir.