Skip to content
This repository was archived by the owner on May 16, 2026. It is now read-only.
This repository was archived by the owner on May 16, 2026. It is now read-only.

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

@SamuelMiller

Description

@SamuelMiller

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions