You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm on Gulp 4 with vinyl-ftp, and I'm not sure why the code below does not work as expected — it just deletes all the files from /www/remote/ and it's subfolders as opposed to checking with local if the files are available and delete selectively:
function clean() {
let conn = ftp.create({
host: 'xxx',
user: 'yyy',
password: 'zzz',
parallel: 10,
log: log
});
let remoteFiles = '/www/remote/**/*.*';
return conn.clean(remoteFiles, './build', {base: '/'});
}
The local files are located in ./build relatively to gulpfile.js. The remote files are located in /www/remote.
The text was updated successfully, but these errors were encountered:
I'm on Gulp 4 with vinyl-ftp, and I'm not sure why the code below does not work as expected — it just deletes all the files from /www/remote/ and it's subfolders as opposed to checking with local if the files are available and delete selectively:
The local files are located in ./build relatively to gulpfile.js. The remote files are located in /www/remote.
The text was updated successfully, but these errors were encountered: