mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
Clear指令不删除.gitignore 文件
This commit is contained in:
@@ -34,7 +34,7 @@ class Clear extends Command
|
|||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
if ('.' != $file && '..' != $file && is_dir($path . $file)) {
|
if ('.' != $file && '..' != $file && is_dir($path . $file)) {
|
||||||
array_map('unlink', glob($path . $file . '/*.*'));
|
array_map('unlink', glob($path . $file . '/*.*'));
|
||||||
} elseif (is_file($path . $file)) {
|
} elseif ('.gitignore' != $file && is_file($path . $file)) {
|
||||||
unlink($path . $file);
|
unlink($path . $file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user