'Fails if the specified directory is empty.
The default error message can be overridden with the ``msg`` argument.'

def directory_should_not_be_empty(self, path, msg=None):

    path = self._absnorm(path)
    items = self._list_dir(path)
    if (not items):
        self._fail(msg, ("Directory    '%s'    is    empty." % path))
    self._link(("Directory    '%%s'    contains    %d    item%s." % (len(items), plural_or_not(items))), path)
