• Advertisement
Sign in to follow this  

BOOST filesystem and copy_file

This topic is 4324 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys!! i try to use BOOST to find a file and copy this file to other directory so i use this for to get te directories for( fs::directory_iterator itr( dir_path ); itr != end_itr; ++itr ) .. .. .. if( fs::is_directory(*itr) ) // ask if is it a dir { ... ... } else{ // if not a dir , it's a file so... fs::path path2Copy("c:\findFiles", fs::native ); fs::copy_file(*itr,path2Copy); } but my program crash! , y think i need samething like itr->getpath() , but y can't find out , any one can help me? thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement