async def _should_include_file(self, client: httpx.AsyncClient, file_obj: Dict) -> bool:
        """Determine if a file should be included based on exclusion patterns."""
        file_name = file_obj.get("name", "unknown")

        # Get the full file path with async call
        file_path = await self._get_file_path(client, file_obj)

        # Log full path info for EVERY file - this makes debugging easier
        logger.info(
            f"FILE PATH: '{file_path}' (name: {file_name}, id: {file_obj.get('id', 'unknown')})"
        )

        # If no exclusion patterns, include everything
        if not self.exclude_patterns:
            logger.info(f"No exclusion patterns set, including file: {file_name}")
            return True

        # Check against each exclusion pattern
        for pattern in self.exclude_patterns:
            if self._path_matches_pattern(file_path, pattern):
                logger.info(
                    f"EXCLUDED: File '{file_name}' (path: {file_path}) matches "
                    f"exclusion pattern '{pattern}'"
                )
                return False

        logger.info(
            f"INCLUDED: File '{file_name}' (path: {file_path}) doesn't match any exclusion patterns"
        )
        return True
Determine if a file should be included based on exclusion patterns.
backend/airweave/platform/sources/google_drive.py