Boost logo

Boost Users :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2004-05-28 02:11:06


Uli Türk wrote:

> I wanted to create a hidden files (for configuration etc) by starting
> the filename with a dot on a Linux system.
> The following line aborts the program when filename is a std::string
> starting with a dot:
>
> > boost::filesystem::path filename_complete = basepath / filename;
>
> Are there any tricks for that?

You need to use a native path. Read up on native path representations
and the name check mechanism in the documentation for
"boost/filesystem/path.hpp".

HTH, Markus


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