RS Firewall alert

RS Firewall could give an alert to this file:

With this error message:
Unsafe directory creation - 0777 permissions

This mesage is wrong, so you can ignore that, but here is the description, if you are interested:
Mkdir has 0777 value in there by default, we just had to specify the "recursive" value in the end to be "true", so this doesn't change anything, as defaultly, even if you don't see it, it looks like:

return mkdir($path, 0777, false);

and RS firewall in this case is wrong, as servers can choose how mkdir should create folders, with what permission, so we are not choosing a permission for the folders, we are just using the default value.