Do not used cached `scan()` results in the `Files` class (see #5795)