Boost logo

Boost Users :

From: Michael Partridge (michael.partridge_at_[hidden])
Date: 2006-11-19 23:24:28


Hi Boosters,

I'm using the filesystem::complete function and have the following
situation:

bfs::path my_path("");
bfs::path current = bfs::current_path();
bfs::path p = bfs::complete(my_path, current);

This results in p.string == "".

Now I can see from the code that if my_path.empty() == true then a copy
of my_path is returned, but I'm not certain of the rationale behind
this. If I pass in an empty path and ask for it to be turned into a
complete path then shouldn't I just get the base?

As an additional consideration, if I go:

bfs::path p = system_complete(bfs::path(""));

Shouldn't I get current_path(), rather than an empty path ""?

Cheers,
Michael

ps. sorry if this question has been answered before, I searched the
archive and couldn't find any discussion.


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