Boost logo

Boost Users :

From: Silvio Reis Junior (sreisjr_at_[hidden])
Date: 2008-04-16 07:53:49


Hello folks!
Sorry for the late reply. I found what was wrong.
boost::filesystem directory_iterator throws an exception when access is
denied for a folder.
So I need to create a check for this before recursing into any folder.

Thanks for the replies!
Silvio

On Wed, Apr 16, 2008 at 5:32 AM, dizzy <dizzy_at_[hidden]> wrote:

> On Tuesday 15 April 2008 15:44:49 Ovanes Markarian wrote:
> > This is what I was going to mention in my post with . and .. special
> > directories. With the approach used the infinite loop should happen
> already
> > with the first occurence of .-directory, which would recurse in the same
> > directory and find the first item (.-dir again).
>
> No because boost::filesystem directory iterators do not expose (ie
> automatically skip) "." and "..".
>
> --
> Mihai RUSU Email: dizzy_at_[hidden]
> "Linux is obsolete" -- AST
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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