Boost logo

Boost Users :

From: Meir Yanovich (meiry242_at_[hidden])
Date: 2008-05-10 11:13:16


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?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net