boost::filesystem::create_directory()

J

jhasse

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?
 
T

TB

(e-mail address removed) 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.
 
B

BobR

TB wrote in message said:
(e-mail address removed) skrev:

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

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.).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top