refactor: update file skipping logic in Dropbox, Google Drive, and OneDrive connectors to return unsupported extension information

This commit is contained in:
Anish Sarkar 2026-04-07 05:11:15 +05:30
parent 122be76133
commit a624c86b04
4 changed files with 9 additions and 5 deletions

View file

@ -24,7 +24,8 @@ async def download_and_extract_content(
item_id = file.get("id")
file_name = file.get("name", "Unknown")
if should_skip_file(file):
skip, _unsup_ext = should_skip_file(file)
if skip:
return None, {}, "Skipping non-indexable item"
file_info = file.get("file", {})