是否可以将Firebase函数的范围限制在存储桶中的文件夹? [英] Is it possible to scope Firebase functions to a folder inside a storage bucket?
问题描述
是否可以将函数范围限定在我的存储桶中的某个文件夹中,如果是,如何?
或者我需要有多个桶而不是文件夹来分隔不同的任务。
I have tested Firebase functions for storage successfully. However, I havn't seen anywhere a hint how to only invoke the function when a file is added into a folder inside my bucket. The only hint I have seen about scoping the function is for different buckets here.
Is it possible to scope the function to a folder inside my bucket , if yes how? Or would I need to have multiple buckets instead of folders to separate different tasks.
firebaser here
There is currently no way to trigger Cloud Functions only for writes in a specific folder in Cloud Storage. If you want to limit the triggering to a subset of the files in your project, putting them in a separate bucket is currently the only way to accomplish that.
这篇关于是否可以将Firebase函数的范围限制在存储桶中的文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!