Skip to content

write file to disk #11

@adai183

Description

@adai183

Hey!
Thanks for that great module.
I am having trouble to download a file using the getFile method.
It just creates an empty file.

here is my code:

api.getFile('/personal/1.jpg', function(err, res, body) {

    var file = fs.createWriteStream("1.jpg");
    res.pipe(file);

});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions