use the glob function to check contents- doesn't yield . and ..