BrunoDeBarros/git-deploy-php — pull request #39 by sbtsrbayer (2014-05-23 16:35:44+00:00)
Title: adds recursvie delete of newly emptied directories for sftp

In sftp directories were not being deleted. Since git does not keep track of directories the script needs to check to see if the parent directory is empty after a file deletion and then delete the directory if it's empty. For ftp there was already a function to do this, so I took the logic from that function and rewrote it to work for sftp.