Closed msx2 closed 11 years ago
clean_directories[] wasn't implemented by me, so I wasn't familiar with that issue. I've got a recursive function for that; I'll add it to git-deploy as soon as possible, because that's an important issue.
I've got it implemented in case somebody needs it https://github.com/Ciki/git-deploy-php/commit/c36a761943d4051412a26be9b8d65b0d2eb61231 ..
This is fixed in git-deploy-php 2.0 and should no longer be a problem. :)
If we use clean_directories[] to empty a directory, only the files from it will be deleted. For any subdirectory we will receive a warning message telling that a directory can't be deleted, not it's content is being deleted. What do you think about recursive check and removing all nested directories from the directory we put in clean_directories[]?