ftp-deploy icon indicating copy to clipboard operation
ftp-deploy copied to clipboard

Ignore file to delete

Open a-tonchev opened this issue 4 years ago • 5 comments

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!

a-tonchev avatar Apr 12 '21 17:04 a-tonchev

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 avatar Apr 13 '21 05:04 simonh1000

@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

a-tonchev avatar Apr 13 '21 08:04 a-tonchev

@simonh1000 did you manage to take a look into it?

Thanks

a-tonchev avatar May 07 '21 07:05 a-tonchev

Would also be very interested in this feature! (exclude files & folders)

vincentsels avatar Dec 20 '21 18:12 vincentsels

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

a-tonchev avatar May 11 '23 14:05 a-tonchev