Implementations of directory_iterator ([fs.class.directory_iterator])
are prohibited from directly or indirectly calling the refresh function
since it must access the external file system,
and the objective of caching is to avoid unnecessary file system accesses.