Created
August 12, 2019 07:06
-
-
Save mhemrg/82d3685fa837b2015317078cd7dfb798 to your computer and use it in GitHub Desktop.
Liara | S3 list objects in ExpressJS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let result=[]; | |
let stream = liaraClient.listObjects('ic-default-barber','', true); | |
stream.on('data', (obj) => { | |
result.push(obj.name); | |
}); | |
stream.on('end', () => { | |
res.json({result: result}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment