addes storage-list and some supporting logic in storage-read

This commit is contained in:
Peter Svensson
2019-07-07 10:32:47 +02:00
parent e248109ffc
commit 20bbb3c8ef
7 changed files with 170 additions and 13 deletions

View File

@ -26,8 +26,8 @@ module.exports = function(RED) {
private: msg.payload.private || true,
public: msg.payload.public || true,
}
console.log('storage-write writing file to bucket "'+bucket+'" path "'+path+'"')
console.dir(msg.payload)
console.log('storage-write writing file to bucket "'+bucket+'" path "'+path+'" contents is of type '+(typeof contents))
console.dir(contents)
const myBucket = this.storage.bucket(bucket);
const file = myBucket.file(path);
file.save(contents, options, function(err) {