Clarification of a point in 2.9 release notes

The 2.9 release notes say

Previous versions of Gradle did not consider changes to directories when performing up-to-date checks. This has been fixed, and directories are now involved in up-to-date checking.

May I ask what this means?
What exactly was not considered that is considered now?
Do you have any examples?