14742
14742
\returns \tcode {true} if a new directory was created
14743
14743
for the directory \tcode {p} resolves to,
14744
14744
otherwise \tcode {false}.
14745
- The signature with argument \tcode {ec}
14746
- returns \tcode {false} if an error occurs.
14747
14745
14748
14746
\pnum
14749
14747
\throws As specified in~\ref {fs.err.report }.
@@ -14765,13 +14763,13 @@
14765
14763
\begin {itemdescr }
14766
14764
\pnum
14767
14765
\effects Creates the directory \tcode {p} resolves to,
14768
- as if by POSIX \tcode {mkdir() } with a second argument of
14766
+ as if by POSIX \tcode {mkdir} with a second argument of
14769
14767
\tcode {static_cast<int>(perms::all)}.
14770
- Creation failure because \tcode {p} already exists is not an error.
14768
+ If \tcode {mkdir} fails because \tcode {p} resolves to an existing directory,
14769
+ no error is reported. Otherwise on failure an error is reported.
14771
14770
14772
14771
\pnum
14773
14772
\returns \tcode {true} if a new directory was created, otherwise \tcode {false}.
14774
- The signature with argument \tcode {ec} returns \tcode {false} if an error occurs.
14775
14773
14776
14774
\pnum
14777
14775
\throws As specified in~\ref {fs.err.report }.
14789
14787
directory \tcode {p} resolves to, with
14790
14788
attributes copied from directory \tcode {existing_p}. The set of attributes
14791
14789
copied is operating system dependent.
14792
- Creation failure because \tcode {p} already exists is not an error.
14790
+ If \tcode {mkdir} fails because \tcode {p} resolves to an existing directory,
14791
+ no error is reported. Otherwise on failure an error is reported.
14793
14792
\begin {note } For POSIX-based operating systems, the
14794
14793
attributes are those copied by native API \tcode {stat(existing_p.c_str(), \& attributes_stat)}
14795
14794
followed by \tcode {mkdir(p.c_str(), attributes_stat.st_mode)}. For
14798
14797
\end {note }
14799
14798
14800
14799
\pnum
14801
- \returns \tcode {true} if a new directory was created, otherwise \tcode {false}.
14802
- The signature with argument \tcode {ec} returns \tcode {false} if an error occurs.
14800
+ \returns \tcode {true} if a new directory was created
14801
+ with attributes copied from directory \tcode {existing_p},
14802
+ otherwise \tcode {false}.
14803
14803
14804
14804
\pnum
14805
14805
\throws As specified in~\ref {fs.err.report }.
0 commit comments