def file_stat(self, filters=all_true):
self.assert_is_dir_and_exists()<EOL>stat = {"<STR_LIT:file>": <NUM_LIT:0>, "<STR_LIT>": <NUM_LIT:0>, "<STR_LIT:size>": <NUM_LIT:0>}<EOL>for p in self.select(filters=filters, recursive=True):<EOL><INDENT>if p.is_file():<EOL><INDENT>stat["<STR_LIT:file>"] += <NUM_LIT:1><EOL>stat["<STR_LIT:size>"] += p.size<EOL><DEDENT>elif p.is_dir():<EOL><INDENT>stat["<STR_LIT>"] += <NUM_LIT:1><EOL><DEDENT><DEDENT>return stat<EOL>
Find out how many files, directorys and total size (Include file in
        it's sub-folder).

        :returns: stat, a dict like ``{"file": number of files,
          "dir": number of directorys, "size": total size in bytes}``

        **中文文档**

        返回一个目录中的文件, 文件夹, 大小的统计数据。