Boost logo

Boost Users :

From: John Femiani (JOHN.FEMIANI_at_[hidden])
Date: 2008-05-11 18:35:28


Meir Yanovich:
>
> sure the output is :
> I:\ddd\ccc
> the program is:
> #include <iostream>
> #include "boost/filesystem.hpp"
> using namespace boost::filesystem;
> using namespace std;
>
> int main(int argc, char* argv[])
> {
> path path("I:/ddd/ccc",native);
> cout << path.file_string();
> if(exists(path)){
> printf("is");
> }else{
> printf("none");
> }
> return 0;
> }
>

Hmm,

I created a folder C:\ddd\ccc and ran your code exactly as it is.
The result:

C:\ddd\cccis

So it works! (and your missing a newline in your output)

Is I: a network drive?
If so, have you verified that it is connected?

-- John


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