Google Drive List

Description

The Google Drive List component allows you to retrieve a list of files from Google Drive.

actioncomponent-googledrivelist
Output PayloadDescription
cv.PayloadOutputs the file list

Example of the output Payload for Google Drive List

{
"Filename": "test.txt",
"ID": "17CMCa4dsNDD6U0duQEBhVI7QZzXqIPYL",
"IsDir": false,
"MimeType": "text/plain",
"ModifiedTime": "2023-09-28T10:33:46.189Z",
"ParentFolderID": "1-KTO7YslI4iFD-7sxn7CKDNs-UkKMtf8",
"Path": "a/b/test.txt",
"Size": 8
}

Note: In Google Drive, the "Size" will be 0 for directories.

Component Properties

Property NameDescription
Drive Folder PathSpecify the Drive folder path for download
Search TargetSpecify the file name to search
Search TypeMethod of search when searching the 'Search Target', either exact or partial match for the file name
Include FilesInclude files in the search results
Include DirectoriesInclude directories in the search results
Sort OrderSpecify the output order of search results, such as file name (ascending), file name (descending), modified time (ascending), modified time (descending), file size (ascending), file size (descending)
Files Added or Changed TodaySpecify files that were added or updated on the day of execution
Retrieve Files Changed After This TimeDownload files changed after the specified time
Retrieve Files Changed Before This TimeDownload files changed before the specified time
TimeoutHTTP request response timeout value
Time ZoneSpecify the time zone for the time used in 'Files Added or Changed Today'
OAuth2 Client IDSpecify the Client ID for API 2.0 from GCP ※1
OAuth2 Client SecretSpecify the Client Secret from GCP ※1
OAuth2 Redirect URLSpecify the Redirect URL from GCP ※1
OAuth2 Access TokenObtain the token by pressing the 'Get Token' button. You can also update the token by pressing the 'Update Token' button ※1 ※2

※1 For an example of OAuth2 settings in GCP, refer to Google Drive OAuth2 Setup

How to obtain the OAuth2 Access Token is detailed OAuth2 Access Token Setup