added on nodes for rtdb and firestore andmade nodes pass through msg objects with as little changes as possible
This commit is contained in:
@ -46,4 +46,25 @@
|
||||
|
||||
<script type="text/x-red" data-help-name="storage-list">
|
||||
<p>A node that list files from bucket path in google cloud storage</p>
|
||||
Lists the contents of files in a bucket
|
||||
<p>
|
||||
If "path" is defined in the payload, only files beginning with that path will be returned. I fomitted, the root level of the bucket is listed.
|
||||
A path can also be deep likes this; "foo/bar/baz". "delimiter" is the charatcer used to delimit directory levels, "/" by default.
|
||||
<p>
|
||||
input:
|
||||
|
||||
{
|
||||
"payload": {
|
||||
"bucket": "xyzzyz123.appspot.com", // optional
|
||||
"path": "directory1", // optional
|
||||
"delimiter": "/" // optional
|
||||
}
|
||||
}
|
||||
<p>
|
||||
output: An array of google cloud-storage File objects. If you take this output and send it to a function which outputs a payload like this;
|
||||
|
||||
{"files": array_of_File_obejcts}
|
||||
<p>
|
||||
The storage-read module will read all file contents and output an object of filename keyed Buffer objects instead of the normal one.
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user