Hi,
I would like to create an order using CakePHP 4. However, according to the documentation https://book.cakephp.org/4/en/core-libraries/file-folder.html#folder-api the class is deprecated and will be removed soon. Now the question arises which API I should use now.
Is this the right way?
$directory = APP . 'DATA' . DS . 'Images' . DS;
if (!is_dir($directory)) {
mkdir($directory, 0777, true);
}