Help Centre › Functions & Formulas
This article describes the RPA Google Drive functionality to get folder size.
For a full list of available functions, please read Google Drive functions.
Description
The Google Drive Folder size function calculates the total size and file count of a folder, including all nested subfolders.
Setting it up
To use the Google Drive Folder size function, follow these instructions:
{{popups:rpas/add:action=google-workspace-drive-folder-size}}
Once on a process map:
- Navigate to the process where you would like to add the Google Drive Folder size function
- Click on the green button's drop-down (right side of the green button labelled "Process")
- On the menu that appears, click on the "+ Activity" item
- From here you can select the Google Drive Folder size option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| File ID | Yes | Text | - | The folder ID to calculate size for |
| Variable | No | Text | - | State variable to store the result dictionary |
Output variables
| Variable | Type | Description |
|---|---|---|
| Variable | Dictionary | Contains total_size (bytes) and file_count |
Errors
| Error | Description |
|---|---|
| Folder not found | The specified folder ID does not exist |
| Not a folder | The specified ID is not a folder |
Tips
- Access individual values with {variable::total_size} and {variable::file_count}
- Large folders may take longer to process