-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Peng Yu Sent: Monday, October 30, 2006 11:53 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] boost filesystem
I have the following program and files .test.seg and test.seg. I try to run the main program. It seems that boost filesystem doesn't recognize file name starting with a dot.
Is it a bug in boost filesystem. Or I didn't use it properly?
http://boost.org/libs/filesystem/doc/portability_guide.htm#name_check-_f un
ctions
If you use the default constructor for path, then it uses a name checker that doesn't allow filenames starting with dots. This was intended to promote portability, but has been found to be a bad idea and will not be in boost 1.34 (nor is it in the tr2 proposal).
There is only version 1.33 online. How can I get 1.34?
[Nat] You don't need to use 1.34 to suppress the name check. Pass (e.g.) boost::filesystem::no_check as the second parameter to the boost::filesystem::path constructor.