Actually I think you're ok. The list of directories at the current path level is what you called `names`. (That might be better called `dirs`?) And `filenames` is the list of files in that path. It doesn't look like `filenames` would include directories or special named files. Not 100% tho.