php mkdir函数

if(!is_dir($targetPath)){mkdir($targetPath, 0700);
    }

is_dir 判断目录是否存在

mkdir 不能创建多级目录