The name of this function is a little misleading given the preclusion of '.' directories.