mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-03 05:52:48 +08:00
自动生成的时候 检测应用目录是否可写
This commit is contained in:
@@ -18,7 +18,10 @@ class Create {
|
||||
if(is_writable($lockfile)) {
|
||||
return ;
|
||||
} else {
|
||||
touch($lockfile);
|
||||
if(!touch($lockfile)){
|
||||
header('Content-Type:text/html; charset=utf-8');
|
||||
exit('目录 [ '.APP_PATH.' ] 不可写!');
|
||||
}
|
||||
}
|
||||
foreach ($build as $module=>$list){
|
||||
if(!is_dir(APP_PATH.$module)) {// 创建模块目录
|
||||
|
||||
Reference in New Issue
Block a user