27
Input/output library
[input.output]
27.11
File systems
[filesystems]
27.11.14
Filesystem operation functions
[fs.op.funcs]
27.11.14.6
Create directories
[fs.op.create_directories]
🔗
bool create_directories(const path& p); bool create_directories(const path& p, error_code& ec);
1
#
Effects:
Calls
create_directory()
for each element of
p
that does not exist
.
2
#
Returns:
true
if a new directory was created for the directory
p
resolves to, otherwise
false
.
The signature with argument
ec
returns
false
if an error occurs
.
3
#
Throws:
As specified in
[fs.err.report]
.
4
#
Complexity:
O
(
n
)
where
n
is the number of elements of
p
.