Download multiple files from Google Cloud Storage

Hi,
Does anyone know how I can download a directory with files from Google Cloud Storage?
I know how to take only one file, like this:

image

But I need to take n files from a Google Storage directory, and since the files node in the list needs a string location, it does not recognize the remote file address in the Google Cloud Storage File Picker node, so put the folder address as such, and not occasionally a file.
Do you know if it is possible to do what I need?

1 Like

Hi @daviddelos,

Have you tried List Remote Files and Download / Upload From List nodes to download your files?

:blush:

3 Likes

Hi @armingrudd,
Thanks for answering.

Yes, I had already tried using those two nodes you mention, but with the same settings that worked for me for the Google Cloud Storage File Picker, neither list remote files, nor dowload works. The list remote files node shows me this error when I run it :

ERROR List Remote Files 2:812:123 Execute failed: 400 Bad Request
{
ā€œerrorā€ : ā€œinvalid_scopeā€,
ā€œerror_descriptionā€ : ā€œInvalid OAuth scope or ID token audience provided.ā€
}

image

Maybe you know what can be wrong?

@daviddelos, I set up a similar test workflow and the List Remote Files is working for me (after playing with the scopes and permissions a bit.

image

In my set up, I added the following scopes Google Authentication (API Key) node:

image

For the service account I set up to test this, I gave it the Storage Admin role in the GCP console. I did not experiment with assigning a less privileged role to the service account, but you could start there and reduce the privilege until itā€™s sufficient to your use-case.

-Jason

6 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.