def listfile(p):
try:<EOL><INDENT>for entry in scandir.scandir(p):<EOL><INDENT>if entry.is_file():<EOL><INDENT>yield entry.name<EOL><DEDENT><DEDENT><DEDENT>except OSError:<EOL><INDENT>return<EOL><DEDENT>
generator of list files in the path.
filenames only