Opened 7 years ago

Last modified 7 years ago

#11949 new Support Requests

request for information

Reported by: dp25@… Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost 1.61.0 Severity: Not Applicable
Keywords: Cc:

Description

This is not a bug notice but a request for information. Do you have an example of a directory listing using boost that is in alpha order? How do I modify the following code to do that? Can I pass boost a compare file as can be done in the C fts system?

for (directory_entry& x : directory_iterator(p)){

fullPathName = x.path().string(); cout .....

}

or this way:

directory_iterator end ;

for( directory_iterator iter("../takes/test") ; iter != end ; ++iter ) {

if ( !is_directory( *iter ) ){

cout << iter->path() << "\n";

}

}

thanks in advance. Please reply to David at dp25@…

Change History (1)

comment:1 by anonymous, 7 years ago

sorry I meant compare FUNCTION(!)

Note: See TracTickets for help on using tickets.