Skip to main content
Files

Check whether a File exists

Check whether a File exists

Checks whether a file exists at a specific path in Google Drive.


Options

Google Drive account

Select the Connection action set up in the flow.

Drive (optional)

Enter the name of the drive to reach. Leave it empty to use "My Drive".

File path

Enter the full path of the file to check, including its name and extension, for example /Documentos/relatorio.pdf.

Returns

Javascript code

js
actions["action-id"].exists // true if the file exists, false otherwise (Yes/No)

Field selection

  • exists — true if the file exists, false otherwise (Yes/No)

Rules and Conditions

  • The Google Drive account and File path fields are required.
  • This action never stops the run because the file was not found — use the exists return for conditional flow control.