29 Input/output library [input.output]

29.12 File systems [filesystems]

29.12.13 Filesystem operation functions [fs.op.funcs]

29.12.13.7 Create directories [fs.op.create.directories]

bool filesystem::create_directories(const path& p); bool filesystem::create_directories(const path& p, error_code& ec);
Effects: Calls create_­directory() for each element of p that does not exist.
Returns: true if a new directory was created for the directory p resolves to, otherwise false.
Throws: As specified in [fs.err.report].
Complexity: where n is the number of elements of p.