New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
codecept clean command does not delete directory if there is a .gitignore file in it #2444
Comments
We still have the issue it's pretty easy to replace: if ($basename === '.' || $basename === '..' || $basename === '.gitignore') {
continue;
} by if ($basename === '.' || $basename === '..') {
continue;
}
if ($basename === '.gitignore' && $path->getPathInfo()->getBasename() === Configuration::outputDir()) {;
continue;
} But it doesn't look good because we are in Any others idea? |
I have almost opposite issue now - I don't like that |
I raised PR to keep .gitkeep files: #6118 |
Great so we can close this issue, it's not relevant anymore, what do you think? |
I don't remember why it was an issue to me anymore. |
PHP Warning: rmdir(/Project/tests/_output/sites/test_5617e447ddefc): Directory not empty in phar:///Project/codecept.phar/src/Codeception/Util/FileSystem.php on line 28
It happens because there is a special exception for .gitignore in
Codeception/src/Codeception/Util/FileSystem.php
Line 23 in f11bfe9
It was introduced by this pull request #597
My suggestion is to check if it is _output/.gitignore specifically and delete all .gitignore files in subdirs.
The text was updated successfully, but these errors were encountered: