change func.php, add func for create dir