Open COLABORATI opened 8 years ago
Have the same issue here , please help
Same issue, would loved to be able todo this
To resolve issue use rsync options like:
gulp.src('../path/outside/**')
.pipe(rsync({
root: '../path/outside',
destination: '/target/directory'
}));
I would like to copy a
../path/outside
of the current directory with thegulpfile.js
to a host. It is really ok in this case to have the directory above the current one. I get this error:Error: Source contains paths outside of root
Other npm modules like 'del' offer a
force: true
option for this use case.Oh, btw when I use
../path/outside
as src, what is ok in rsync, the source path is reduced to.
in the resulting rsync command, like this:rsync -anRvz --progress --delete . host:/target/directory
so I used the path module to resolve the pathgulp.src(path.resolve(dist))