no nothing not working ...
im on win2k using libboost_filesystem-vc80-mt-1_34_1.lib
2008/5/10 Igor R.
Does it work without the trailing slash (I:/ddd/ccc) ?
Date: Sat, 10 May 2008 17:13:16 +0200 From: meiry242@gmail.com To: boost-users@lists.boost.org Subject: [Boost-users] s_directory(path) returns false in windows , path do exist
Hello all im new to boost::filesystem and im trying to run simple test on checking folder existence on windows 2k but even so the folder do excites im getting false from is_directory(path) what im doing wrong here ?
#include "boost/filesystem.hpp" // includes all needed Boost.Filesystem declarations using namespace boost::filesystem; path path("I:\\ddd\\ccc\\",boost::filesystem::native); or path path("I:/ddd/ccc/"); or path path("I:\\ddd\\ccc\\";
if(is_directory(path)){ printf("is"); }else{ printf("none"); }
what im doin g wrong here? _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
________________________________ Connect to the next generation of MSN Messenger Get it now! _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users