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 doing 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!