public static function recursiveMkdir($pathname, $mode = 0777, $recursive = TRUE, $context = NULL) {
        if(is_dir($pathname)) {
            return TRUE;
        }

        if($context) {
            return mkdir($pathname, $mode, $recursive, $context);
        }
        else {
            return mkdir($pathname, $mode, $recursive);
        }
    }