Boost logo

Boost Users :

Subject: [Boost-users] Boost Filesystem iterator no_push
From: Kiah08 (tonycaver2007_at_[hidden])
Date: 2011-06-22 00:36:55


I am using recursive directory iterator. When I list files and directories,
my program terminates on "System Volume Information" on Windows machines.
The system folder is inaccessible.
I believe I need to implement the no_push() modifier. Could someone explain
how to add that to this block of code?

---------------------------
void initial_path( const path & directory, bool recurse_into_subdirs = true
)
{
if(exists(directory))
{directory_iterator end;
for(directory_iterator iter(directory) ; iter != end; ++iter)
if (is_directory( *iter ))
{cout << iter->path() << " (directory)\n";
if( recurse_into_subdirs ) initial_path(*iter);
}
---------------------------

--
View this message in context: http://boost.2283326.n4.nabble.com/Boost-Filesystem-iterator-no-push-tp3615996p3615996.html
Sent from the Boost - Users mailing list archive at Nabble.com.

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