Boost logo

Boost :

From: Caleb Epstein (caleb.epstein_at_[hidden])
Date: 2006-08-03 11:13:51


On 8/2/06, Stephan Menzel <smenzel_at_[hidden]> wrote:

> when I am creating a directory with boost::filesystem::create_directory() the
> dir will be created, but the set permissions will not include 'executable'
> rights. Hance the application is not allowed to traverse into the dir it just
> created.

What is your umask? What version of Boost are you using? The
following code works properly here as a naive implementation of the
"mkdir" command with the latest version of CVS version of Boost:

---
#include <boost/filesystem/operations.hpp>
using namespace boost::filesystem;
int main (int argc, char** argv)
{
    for (int i = 1; i < argc; ++i)
        create_directory (argv[i]);
}
---
% ./mkdir aaa
% ls -FldG aaa
drwxrwxr-x 2 cepstein 4.0K Aug  3 11:10 aaa/
% umask
002
-- 
Caleb Epstein

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk