from os import walk

_, _, filenames = next(walk(mypath))