Trigger a function on Cloud Storage changes
Use functions.storage to create a function that handles Cloud Storage events. Depending on whether you want to scope your function to a specific Cloud Storage bucket or use the default bucket, use one of the following:
functions.storage.object()
to listen for object changes on the default storage bucket.
functions.storage.bucket('bucketName').object()
to listen for object changes on a specific bucket.
QUESTION
Can I listen for changes inside a specific folder of my bucket?
Example:
//myBucket/blog-post-images/...
Only trigger for files uploaded to the blog-post-images
folder?