Closed mage2-dev closed 9 years ago
Did you find a shell-command so far to delete empty directories?
There is a code implementation on hackathon to read through the directory, and delete if empty. However, it feels like the logic is flawed a bit.
Its located at public function rmEmptyDirsRecursive($dir, $stopDir = null) in src/MagentoHackathon/Composer/Magento/Deploystrategy/DeploystrategyAbstract.php
You can link the code as well ;) - https://github.com/magento-hackathon/magento-composer-installer/blob/master/src/MagentoHackathon/Composer/Magento/Deploystrategy/DeploystrategyAbstract.php#L386
Can you elaborate a bit on your feeling? What do you think is flawed or what does look fishy to you?
I also wonder if using realpath
here does conflict with symlinked directories, #122 .
Please test if the fix resolves your Issue
If a package/extension is installed with the inline composer.json extra-map information to e.g. app/code/Jay/Ext1, when I try to delete it, it deletes all the code inside the Ext1 directory, however, it doesn't delete Ext1 or Jay directory even though they are empty.