def walk_skip_hidden(top, onerror=None, followlinks=False):
 for (root, dirs, files) in os.walk(top, topdown=True, onerror=onerror, followlinks=followlinks):
  dirs[:] = [d for d in dirs if (not is_path_hidden(d))]
  files[:] = [f for f in files if (not is_path_hidden(f))]
  (yield (root, dirs, files))

def walk_skip_hidden ( top , onerror = None , followlinks = False ) : for ( root , dirs , files ) in os . walk ( top , topdown = True , onerror = onerror , followlinks = followlinks ) : dirs [ : ] = [ d for d in dirs if ( not is_path_hidden ( d ) ) ] files [ : ] = [ f for f in files if ( not is_path_hidden ( f ) ) ] ( yield ( root , dirs , files ) )
a wrapper for os .