drone-ftps icon indicating copy to clipboard operation
drone-ftps copied to clipboard

Option to delete files on the ftp destination that are not present in the source dir

Open tomlschmidt opened this issue 2 years ago • 0 comments

Adding an option to delete files on the ftp destination that are not present in the source dir would be very helpful for my deployment process. That way files whose file names are unique on each build get deleted on the ftp destination and don't fill up the space over time.

Looking at the man page it seems like adding the "-e" respectively "--delete" option to the "mirror" command would allow this.

tomlschmidt avatar Mar 02 '22 09:03 tomlschmidt