mkdir fails with error if subdirectory is set to more than one directory (e.g. subfolder : /foo/bar) when called from the create_folder function in utils.php
This issue can be fixed by adding the recursive flag to the mkdir calls on lines 38 and 40 as follows:
function create_folder($path=false,$path_thumbs=false){
$oldumask = umask(0);
if ($path && !file_exists($path))
mkdir($path, 0777, true); // or even 01777 so you get the sticky bit set
if($path_thumbs && !file_exists($path_thumbs))
mkdir($path_thumbs, 0777, true) or die("$path_thumbs cannot be found"); // or even 01777 so you get the sticky bit set
umask($oldumask);
}
mkdir
fails with error if subdirectory is set to more than one directory (e.g.subfolder : /foo/bar
) when called from the create_folder function in utils.phpThis issue can be fixed by adding the recursive flag to the
mkdir
calls on lines 38 and 40 as follows: