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
292 stars 45 forks source link

clean_directories[] works only for files #19

Closed msx2 closed 11 years ago

msx2 commented 12 years ago

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[]?

pocketarc commented 12 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.

Ciki commented 11 years ago

I've got it implemented in case somebody needs it https://github.com/Ciki/git-deploy-php/commit/c36a761943d4051412a26be9b8d65b0d2eb61231 ..

pocketarc commented 11 years ago

This is fixed in git-deploy-php 2.0 and should no longer be a problem. :)