[Filesystem]: Is an empty path relative or complete?
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.
participants (1)
-
Michael Partridge