Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gulp vinyl ftp - Remove local deleted files

Tags:

gulp

ftp

vinyl

I use vinyl ftp to deploy my project on remote server. No problem to upload files but i would also like to delete files that aren't anymore in local folder.

Example :

Local folder

./
fileA
fileB
fileC

Remote folder :

./
fileB
fileC
fileD

What i have in remote folder for the moment after deploy :

./
fileA
fileB
fileC
fileD

What i would like (exactly same as local folder) :

./
fileA
fileB
fileC

I could use rmdir to delete all files but that implies to reupload all files for each deploy.

Thank you

like image 234
A. Joahny Avatar asked Sep 26 '22 21:09

A. Joahny


1 Answers

Doesn't look like its implemented yet:

https://github.com/morris/vinyl-ftp/issues/33

(2016-06-20) edit by @ajoah: It's implemented since version 0.5.0 through clean function.

like image 88
Tim Ricker Avatar answered Dec 31 '22 22:12

Tim Ricker