what is the replacement for native_file_string()

i like to print the full path of the files and directory and when doing it with native_file_string() error C2039: 'native_file_string' : is not a member of 'boost::filesystem::basic_directory_entry<Path>' i just do simple : for( fs::recursive_directory_iterator it(dir_path); it != fs::recursive_directory_iterator(); ++it) { string s = it->native_file_string(); }

2008/5/15 Meir Yanovich
i like to print the full path of the files and directory and when doing it with native_file_string() error C2039: 'native_file_string' : is not a member of 'boost::filesystem::basic_directory_entry<Path>' i just do simple : for( fs::recursive_directory_iterator it(dir_path); it != fs::recursive_directory_iterator(); ++it) {
string s = it->native_file_string(); }
external_file_string()?

well im getting now :
error C2039: 'external_file_string' : is not a member of
'boost::filesystem::basic_directory_entry<Path>'
i dont get it does it Supposed To be backward capability
or probably im missing here something ..
On Fri, May 16, 2008 at 10:06 PM, Stuart Dootson
2008/5/15 Meir Yanovich
: i like to print the full path of the files and directory and when doing it with native_file_string() error C2039: 'native_file_string' : is not a member of 'boost::filesystem::basic_directory_entry<Path>' i just do simple : for( fs::recursive_directory_iterator it(dir_path); it != fs::recursive_directory_iterator(); ++it) {
string s = it->native_file_string(); }
external_file_string()? _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

someone ?
On Sat, May 17, 2008 at 8:45 AM, Meir Yanovich
well im getting now : error C2039: 'external_file_string' : is not a member of 'boost::filesystem::basic_directory_entry<Path>' i dont get it does it Supposed To be backward capability or probably im missing here something ..
On Fri, May 16, 2008 at 10:06 PM, Stuart Dootson
wrote: 2008/5/15 Meir Yanovich
: i like to print the full path of the files and directory and when doing it with native_file_string() error C2039: 'native_file_string' : is not a member of 'boost::filesystem::basic_directory_entry<Path>' i just do simple : for( fs::recursive_directory_iterator it(dir_path); it != fs::recursive_directory_iterator(); ++it) {
string s = it->native_file_string(); }
external_file_string()? _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

sorry i solve that its working now put is shows me only the folder/file name
no full path , so im returning to my original question
what is the way to get full path of file/folder
thanks
On Sun, May 18, 2008 at 6:17 PM, Meir Yanovich
someone ?
On Sat, May 17, 2008 at 8:45 AM, Meir Yanovich
wrote: well im getting now : error C2039: 'external_file_string' : is not a member of 'boost::filesystem::basic_directory_entry<Path>' i dont get it does it Supposed To be backward capability or probably im missing here something ..
On Fri, May 16, 2008 at 10:06 PM, Stuart Dootson
wrote: 2008/5/15 Meir Yanovich
: i like to print the full path of the files and directory and when doing it with native_file_string() error C2039: 'native_file_string' : is not a member of 'boost::filesystem::basic_directory_entry<Path>' i just do simple : for( fs::recursive_directory_iterator it(dir_path); it != fs::recursive_directory_iterator(); ++it) {
string s = it->native_file_string(); }
external_file_string()? _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

[Please do not mail me a copy of your followup]
boost-users@lists.boost.org spake the secret code
i like to print the full path of the files and directory and when doing it with native_file_string() error C2039: 'native_file_string' : is not a member of 'boost::filesystem::basic_directory_entry<Path>' i just do simple : for( fs::recursive_directory_iterator it(dir_path); it != fs::recursive_directory_iterator(); ++it) {
string s = it->native_file_string(); }
What version of boost are you using? According to http://www.boost.org/doc/libs/1_35_0/libs/filesystem/doc/reference.html#basi..., for 1.35 you should be using external_file_string(): "Returns: The stored path, formatted according to the operating system rules for regular file pathnames, with any Filename conversion applied, and encoded by the Traits::to_external conversion function." -- "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download http://www.xmission.com/~legalize/book/download/index.html Legalize Adulthood! http://blogs.xmission.com/legalize/
participants (3)
-
legalize+jeeves@mail.xmission.com
-
Meir Yanovich
-
Stuart Dootson