*/ if (!function_exists('mkdirs')) { /** * Recursively creates a directory if it not already exists. * * @param string $path * @param integer $mode * @return boolean Returns TRUE on success or FALSE on failure. */ function mkdirs($path, $mode = 0777) { if (!is_dir($path)) { $old_umask = umask(0); $result = mkdir($path, $mode, true); umask($old_umask); } return $result; } } /* End of file MY_file_helper.php */ /* Location: ./application/helpers/MY_file_helper.php */