Boost logo

Boost Users :

From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2008-04-30 13:13:02


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



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net