pocketarc / git-deploy-php

git-deploy-php is a simple php-based tool that deploys your Git repositories to FTP/SFTP servers, and keeps them updated automatically.
http://brunodebarros.github.io/git-deploy-php
291 stars 45 forks source link

adds recursvie delete of newly emptied directories for sftp #39

Closed sbtsrbayer closed 10 years ago

sbtsrbayer commented 10 years ago

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.

pocketarc commented 10 years ago

This is really great, thanks for catching that error! Thank you! :D