Boost logo

Boost-Build :

Subject: [Boost-build] question on path.makedirs behavior
From: Tom (tabsoftwareconsulting_at_[hidden])
Date: 2014-09-14 00:18:40


Hi all,

I'm trying to use the 'path.makedirs' rule in a project, but it's not
working as I expected and reports that it cannot create a directory in
certain circumstances.

I think I've boiled it down to a simple example that shows what I
didn't expect. The first time I run the following Jamroot, I get an
error trying to create the '$(root)/b' directory. If I run it again,
it succeeds.

Does anyone have an idea why this happens?

```
# Jamroot
import path ;
path-constant root : ./tmp ;
path.makedirs $(root)/a ;
path.makedirs $(root)/b ;

```

Thanks,
Tom


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk