What is Expected Input for `dir` Type in `/run` Endpoint According to Given Schema?

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

Hey folks running into a weird type called dir that I don’t know how to handle. What are we suppose to provide? Here is the schema


{'data': {'name': 'Download File', 'description': 'Download a file. [See the documentation](https://developers.google.com/drive/api/v3/manage-downloads) for more information', 'component_type': 'action', 'version': '0.1.11', 'key': 'google_drive-download-file', 'configurable_props': [{'name': 'googleDrive', 'type': 'app', 'app': 'google_drive'}, {'name': 'drive', 'type': 'string', 'label': 'Drive', 'description': 'Defaults to `My Drive`. To select a [Shared Drive](https://support.google.com/a/users/answer/9310351) instead, select it from this list.', 'optional': True, 'default': 'My Drive', 'remoteOptions': True}, {'name': 'fileId', 'type': 'string', 'label': 'File', 'description': 'The file to download', 'remoteOptions': True}, {'name': 'filePath', 'type': 'string', 'label': 'Destination File Path', 'description': 'The destination file name or path [in the `/tmp` directory](https://pipedream.com/docs/workflows/steps/code/nodejs/working-with-files/#the-tmp-directory) (e.g., `/tmp/myFile.csv`)'}, {'name': 'mimeType', 'type': 'string', 'label': 'Conversion Format', 'description': 'The format to which to convert the downloaded file if it is a [Google Workspace document](https://developers.google.com/drive/api/v3/ref-export-formats)', 'optional': True, 'remoteOptions': True}, {'name': 'syncDir', 'type': 'dir', 'accessMode': 'write', 'sync': True}], 'stash': 'required'}}

What does the /run endpoint expect us to provide?

Oh nvm, I found https://pipedream.com/docs/connect/components/files/

It looks like the example simply…ignores it?

It’d be nice if it was marked optional

We need to update our docs, we just shipped the dir prop type this week — that’s a flag that you can use to indicate whether you should pass stashId in runAction, to return a remote URL for any files that may be returns in the response.

Ah! Good to know

So I assume if it’s there, we can pass stashId

That’s exactly right. We’ll be publishing updated docs asap.