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
{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:
Sent from the Boost - Users mailing list archive at

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at