Boost logo

Boost Users :

From: Meir Yanovich (meiry242_at_[hidden])
Date: 2008-05-10 15:04:27


no nothing not working ...
im on win2k using libboost_filesystem-vc80-mt-1_34_1.lib

2008/5/10 Igor R. <igor_rubinov_at_[hidden]>:
> Does it work without the trailing slash (I:/ddd/ccc) ?
>
>> Date: Sat, 10 May 2008 17:13:16 +0200
>> From: meiry242_at_[hidden]
>> To: boost-users_at_[hidden]
>> 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_at_[hidden]
>> 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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


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