Hello *,

iterating through a directory (let's say in Windows c:\) with system files, to which only OS has access (like hiberfil.sys) causes the directory iterator to throw an exception. This is all fine, but how can I know what was the error?
status function of the particular directory enty returns regular_file as file_status and system_error_type is 0. The exception thrown is as always (in the filesystem lib) very much saying: boost::directory_iterator.


Is anybody aware of other ways to determine what happened? Just to ignore the exception while iterating through the directory is not always the best choice.



Many Thanks,
Ovanes