If the entry that caused the error is a directory, skip the directory and its content, and
continue with the next entry outside this directory in the traversal order.
Otherwise, skip this entry and continue with the next entry in the traversal order.