ftp-deploy
ftp-deploy copied to clipboard
Ignore file to delete
Is there a possibility to ignore a file in destination directory while deleting?
I would like to empty the destination directory, but to keep only one file (e.g. the .htaccess file), is this possible?
Thanks!
I'm afraid not. In my case the variable - compiled assets - are in directories, while at the top level are some pretty constant .php files, so I don't face this. If you can think of a simple solution then I would accept a PR, but do discuss first to avoid problems at review
@simonh1000 Okay, I just created a pull request for it.
https://github.com/simonh1000/ftp-deploy/pull/130
I also tested it - it works fine. It is very simple, of course if you have better Idea I would fix or remove my PR
@simonh1000 did you manage to take a look into it?
Thanks
Would also be very interested in this feature! (exclude files & folders)
I just create clean new Pull Request, that can ignore whole directories or just files
@simonh1000 can you check it?
https://github.com/simonh1000/ftp-deploy/pull/155