Skip to main content
Roberty Studio
RPAFiles

Check file existence

Check file existence

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


Options​

Drive connection​

Select the Connection action set up in the flow.

File path on Drive​

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

Only search in "Shared with me"​

Turn this on when the file was shared with the connected account instead of owned by it. The first part of the path is then looked up in Shared with me: /report.pdf points to a file shared directly with the account, and /Client folder/report.pdf to a file inside a shared folder. Default: off.

Drive​

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

Returns​

Javascript code​

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

Field selection​

  • exists — true if the file exists, false otherwise (Boolean)

Rules and Conditions​

  • The Drive connection and File path on Drive fields are required.
  • This action never stops the run because the file was not found — use the exists return for conditional flow control.
  • With Only search in "Shared with me" on, the Drive field is not used to find the first part of the path.