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