FTP-Deploy-Action icon indicating copy to clipboard operation
FTP-Deploy-Action copied to clipboard

Documentation is a bit unclear: Does it delete files automatically + how to exclude from deletion?

Open mandrasch opened this issue 2 months ago • 0 comments

Hey,

thanks so much for providing this as open source! 🙏 👏

I have the following use case:

  1. SvelteKit static site project (just .html / .js / .css), file names change on each build. I don't want old files from previous builds in my target directory (obviously).
  2. There is a directory called /blog (WordPress) in my target directory, /blog does not exist in my repository (remote-only). It should be kept.

I couldn't really get the information from README:

  1. Does FTP-Deploy delete old files automatically? Or do I need to enable dangerous-clean-slate=true?
  2. For not deleting /blog on action runs, my plan was to put this into excluded to keep it remotely?
  3. If I activatedangerous-clean-slate=true, it states Deletes ALL contents of server-dir, even items in excluded with 'exclude' argument - therefore my /blog directory would be deleted on remote? 🤔

Long story short: I'm a bit confused if FTP-Deploy currently supports my use case?

Thx very much!

mandrasch avatar Nov 09 '25 09:11 mandrasch