Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::filesystem path problem under WINDOWS
From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2010-12-13 15:23:06


avanindra singh wrote:
> Hi Jeff,
>
> Thanks for the reply.
>
> I caught the exception using this code:
>
> try{
> create_directory(bundle_path);
> }
> catch(boost::system::system_error const &e)
> {
> cerr<<diagnostic_information(e)<<endl;
> }
>
>
> The printed output was
>
> Throw in function (unknown)
> Dynamic exception type: class boost::exception_detail::clone_impl<struct
> boost::
> exception_detail::error_info_injector<class
> boost::filesystem::basic_filesystem_
> error<class boost::filesystem::basic_path<class
> std::basic_string<char,struct st
> d::char_traits<char>,class std::allocator<char> >,struct
> boost::filesystem::path
> _traits> > > >
> std::exception::what: boost::filesystem::create_directory: The filename,
> directo
> ry name, or volume label syntax is incorrect: "E:\doggy"
>
>
> Can you point me what mistake I am doing here?..I believe the syntax of
> path is correct.

Please don't top post.

Lookup the documentation on create_directory versus create_directories.
Simplify your test case to just what's needed for creating your directories.

Jeff


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