def filename_input(self, path_or_filename):
if os.path.isdir(path_or_filename):<EOL><INDENT>for path, _, files in os.walk(path_or_filename):<EOL><INDENT>for name in files:<EOL><INDENT>if name.endswith('<STR_LIT>'):<EOL><INDENT>xtuml.ModelLoader.filename_input(self, os.path.join(path, name))<EOL><DEDENT><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>xtuml.ModelLoader.filename_input(self, path_or_filename)<EOL><DEDENT>
Open and read input from a *path or filename*, and parse its content.

If the filename is a directory, files that ends with .xtuml located
somewhere in the directory or sub directories will be loaded as well.