safe_mkdir: Use make_dirs for recursive directory creation and run even if on the cdrom platform.

This commit is contained in:
Colin Smith 2005-06-18 20:37:45 +00:00
parent b7cd5f2096
commit 976e130a92

View File

@ -811,11 +811,11 @@ function rmdir_recursive($path,$follow_links=false) {
function safe_mkdir($path, $mode=0755) {
global $g;
if($g['platform'] == "cdrom")
return false;;
// if($g['platform'] == "cdrom")
// return false;;
if (!is_file($path) && !is_dir($path))
return mkdir($path, $mode);
return make_dirs($path, $mode);
else
return false;
}