Boost logo

Boost Users :

From: Hagen Möbius (Hagen.Moebius_at_[hidden])
Date: 2004-05-27 21:24:03


My observation regarding this issue is as follows:

boost::filesystem is about portability. Or more to the point: about
portable paths. So it will check wether your path is portable to ALL
systems it knows. As that includes systems which use the period as
directory delimiter it is not a portable path component.

Here's a look at the documentation:

"portable_name = windows_name(name) && portable_posix_name(name), and
first character not period or hyphen."

As portable_name is the default name_check function this will throw an
exception. Define native_check or posix_check to make it POSIX only and
thus allow the period at the beginning.

eg:

boost::filesystem::path filename_complete(basepath, nativ_check);

path /= filename;

Regards,

Hagen.


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