Skip to content

Commit edf7bb4

Browse files
authored
Google Drive source connector: do not include leading dots in file extensions filter (#558)
1 parent 8673679 commit edf7bb4

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
- `<name>` (_required_) - A unique name for this connector.
22
- `<drive-id>` - The ID for the target Google Drive folder.
33
- `<service-account-key>` - The contents of the `credentials.json` key file as a single-line string.
4-
- For `extensions`, set one or more `<extension>` values (such as `.pdf` or `.docx`) to process files with only those extensions. The default is to include all extensions.
4+
- For `extensions`, set one or more `<extension>` values (such as `pdf` or `docx`) to process files with only those extensions. The default is to include all extensions.
5+
6+
<Note>
7+
Do not include the leading dot in the file extensions. For example, use `pdf` or `docx` instead of `.pdf` or `.docx`.
8+
</Note>
9+
510
- Set `recursive` to `true` to recursively process data from subfolders within the target folder. The default is `false` if not otherwise specified.

snippets/general-shared-text/google-drive-cli-api.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,8 @@ The following environment variables:
1515

1616
- `GCP_SERVICE_ACCOUNT_KEY_FILEPATH` - The path to the `credentials.json` key file, represented by `--service-account-key-path` (CLI) or `service_account_key_path` (Python).
1717
- `GCP_SERVICE_ACCOUNT_KEY_STRING` - The contents of the `credentials.json` key file as a string, represented by `--service-account-key` (CLI) or `service_account_key` (Python).
18+
19+
<Note>
20+
To use `--extensions` with a comma-separated list (CLI) or `extensions` with an array of strings (Python) to process files with only those extensions,
21+
do not include the leading dot in the file extensions. For example, use `pdf` or `docx` instead of `.pdf` or `.docx`.
22+
</Note>

snippets/general-shared-text/google-drive-platform.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ Fill in the following fields:
22

33
- **Name** (_required_): A unique name for this connector.
44
- **Drive ID** (_required_): The target folder's ID.
5-
- **Extensions**: A comma-separated list of any file extensions to be included in the ingestion process (such as `.jpg,.pdf`), if filtering is needed.
5+
- **Extensions**: A comma-separated list of any file extensions to be included in the ingestion process (such as `jpg,pdf`), if filtering is needed.
66
The default is to include all files, if not otherwise specified.
7+
8+
<Note>
9+
Do not include the leading dot in the file extensions. For example, use `jpg` or `pdf` instead of `.jpg` or `.pdf`.
10+
</Note>
11+
712
- **Recursive**: Check this box to also access files from all subfolders within the folder.
813
- **Account Key** (_required_): The contents of the `credentials.json` key file for the target service account. These contents must be expressed as a single-line string without line breaks.

0 commit comments

Comments
 (0)