Fix #81266: mkdir calls directories folders in example code

This commit is contained in:
Christoph M. Becker 2021-07-16 15:00:29 +02:00
parent 2b8d277712
commit 1128875883
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6

View file

@ -111,14 +111,14 @@ mkdir("/path/to/my/dir", 0700);
<programlisting role="php">
<![CDATA[
<?php
// Desired folder structure
// Desired directory structure
$structure = './depth1/depth2/depth3/';
// To create the nested structure, the $recursive parameter
// to mkdir() must be specified.
if (!mkdir($structure, 0777, true)) {
die('Failed to create folders...');
die('Failed to create directories...');
}
// ...