def show_big_file(dir_path, threshold):
        """Print all file path that file size greater and equal than 
        ``#threshold``.
        """
        fc = FileCollection.from_path_by_size(dir_path, min_size=threshold)
        fc.sort_by("size_on_disk")
        
        lines = list()
        lines.append("Results:")
        for winfile in fc.iterfiles():
            lines.append("  %s - %s" % 
                         (string_SizeInBytes(winfile.size_on_disk), winfile))
        lines.append("Above are files' size greater than %s." % 
              string_SizeInBytes(threshold))
        text = "\n".join(lines)
        print(text)
        with open("__show_big_file__.log", "wb") as f:
            f.write(text.encode("utf-8"))
def show_big_file ( dir_path , threshold ) : fc = FileCollection . from_path_by_size ( dir_path , min_size = threshold ) fc . sort_by ( "size_on_disk" ) lines = list ( ) lines . append ( "Results:" ) for winfile in fc . iterfiles ( ) : lines . append ( "  %s - %s" % ( string_SizeInBytes ( winfile . size_on_disk ) , winfile ) ) lines . append ( "Above are files' size greater than %s." % string_SizeInBytes ( threshold ) ) text = "\n" . join ( lines ) print ( text ) with open ( "__show_big_file__.log" , "wb" ) as f : f . write ( text . encode ( "utf-8" ) )
Print all file path that file size greater and equal than 
        ``#threshold``.