On 7/13/05, Peter Koch Larsen
wrote: I have a very basic question. Why does path("s:/dbgdata/testdata.2") throw the exception boost::filesystem::filesystem_error with the errormessage "boost::filesystem::path: invalid name "s:" in path: "s:/dbgdata/testdata.2"? It certainly looks as if I've overlooked something quite fundamental.
I'm using MSVC 8-0 Beta 2 and boost version 1.32.0.
Cory Nelson wrote:
try passing boost::filesystem::native as the second arg to path()
Also note that '/' isn't a native directory separator on Windows. Use '\' instead. You might also like to disable the checker that is throwing these exceptions. See http://www.boost.org/libs/filesystem/doc/path.htm#name_check%AD_mechanism and the associated member functions static name_check default_name_check( name_check new_check ); Angus