|
Boost Users : |
Subject: [Boost-users] How to skip a sub-directory with filesystem3::recursive_directory_iterator in case of exception?
From: Tan, Tom (Shanghai) (TTan_at_[hidden])
Date: 2011-04-12 02:02:02
>
>Again, I tried something like below.
>for (recursive_directory_iterator itr(root, ec), itr_end; itr!=itr_end;
>)
>{
> ... ;
> itr.increment(ec);
> if(ec) itr.pop();
>}
> This time itr.pop() assertion fails because "pop() on
>recursive_directory_iterator with level < 1"
>
>Anybody got some advice? Thanks.
For others facing the same problem, I've reported it as a bug and
created Ticket #5403(https://svn.boost.org/trac/boost/ticket/5403).
A fix was also attached
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