473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

boost::filesystem::create_directory()

How can I create spaces with the create_directory() function?? When i
use this

boost::filesystem::create_directory("bla bla");

it throws. When I user

boost::filesystem::create_directory("blabla");

it works, but i need a space. How can i do it?

Mar 1 '06 #1
2 6465
TB
jh****@gmail.com skrev:
How can I create spaces with the create_directory() function?? When i
use this

boost::filesystem::create_directory("bla bla");

it throws. When I user

boost::filesystem::create_directory("blabla");

it works, but i need a space. How can i do it?


I'd guess that's a restriction due to the many systems
it tries to support. Read the documentation.

--
TB @ SWEDEN
Mar 1 '06 #2

TB wrote in message <44**********************@taz.nntpserver.com>...
jh****@gmail.com skrev:
How can I create spaces with the create_directory() function?? When i
use this

boost::filesystem::create_directory("bla bla");

it throws. When I user

boost::filesystem::create_directory("blabla");

it works, but i need a space. How can i do it?


I'd guess that's a restriction due to the many systems
it tries to support. Read the documentation.

--
TB @ SWEDEN


OP:
Try:
boost::filesystem::create_directory( "\"bla bla\"" );

Some systems (window$) requires the string to be enclosed in quotes when a
space is present.

TB: thanks for the use of your post. (I didn't load the orig.).
--
Bob R
POVrookie
Mar 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.