protected FileStorage::createDirectory($directory, $mode = 0777, $is_backwards_recursive = FALSE)
Ensures the requested directory exists and has the right permissions.
For compatibility with open_basedir, the requested directory is created using a recursion logic that is based on the relative directory path/tree: It works from the end of the path recursively back towards the root directory, until an existing parent directory is found. From there, the subdirectories are created.
Parameters
stri