10 May
2008
10 May
'08
3:13 p.m.
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 doing wrong here?