Where Can I Find a Working Example of Using the /tmp Directory to Upload and Download Files from Google Drive to an API?

This topic was automatically generated from Slack. You can find the original thread here.

I’m trying to understand how to use the /tmp directory to download files (via Google Drive) and upload them to an API. I read through this Working with the filesystem in Node.js But all the linked up workflows don’t work anymore. Is there any working example that I can have a look at to see working with the tmp directory in action?

Hi , the link you’re using is outdated. You can refer to this link instead: Working with the filesystem in Node.js - Pipedream

On another note, there’s a prebuilt action to download file from Google Drive directly: Download File - Pipedream

I also would recommend trying out the $.files instead, it’s persistent storage that avoids a lot of the issues with /tmp when workflows clear their memory between cold/warm states and spinning up new workers to meet your trigger demands

just curious, how did you find that link?