Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to download folders from server, not just a file? #102

Open
SamuelMiller opened this issue May 15, 2022 · 0 comments
Open

Comments

@SamuelMiller
Copy link

SamuelMiller commented May 15, 2022

How would I download a folder and its contents from the server? Following the documentation, which only shows reading individual files, I am able to download a file but not the other contents of the same folder.

This works:

function sftpRead() {
    return gulpSSH.sftp('read', '/home1/sixfacto/public_html/sambadusoleil/readme.md', { filePath: 'readme.md })
        .pipe(dest('lest'))
}

But not this:

function sftpRead() {
    return gulpSSH.sftp('read', '/home1/sixfacto/public_html/sambadusoleil/**', { filePath: 'sambadusoleil' })
        .pipe(dest('logs'))
}

nor this:

function sftpRead() {
    return gulpSSH.sftp('read', '/home1/sixfacto/public_html/sambadusoleil')
        .pipe(dest('logs'))
}

Is gulp-ssh capable of downloading folders from the server? I suspect I would have to use "gulpSSH.exec". But I don't know how. Any suggestions? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant