walk_skip_hidden

astropy.utils.misc.walk_skip_hidden(top, onerror=None, followlinks=False)[source]

A wrapper for os.walk that skips hidden files and directories.

This function does not have the parameter topdown from os.walk: the directories must always be recursed top-down when using this function.

See also

os.walk

For a description of the parameters