Files
cppdraft_translate/cppdraft/fs/op/create/directories.md
2025-10-25 03:02:53 +03:00

1.3 KiB

[fs.op.create.directories]

31 Input/output library [input.output]

31.12 File systems [filesystems]

31.12.13 Filesystem operation functions [fs.op.funcs]

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

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.

3

#

Throws: As specified in [fs.err.report].

4

#

Complexity: O(n) where n is the number of elements of p.