Skip to content

Commit

Permalink
file-based: make new methods abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
aldogonzalez8 committed Feb 3, 2025
1 parent 36e0bca commit d30b1ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions airbyte_cdk/sources/file_based/file_based_stream_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,18 @@ def _get_file_transfer_paths(self, file: RemoteFile, local_directory: str) -> Li
absolute_file_path = path.abspath(local_file_path)
return [file_relative_path, local_file_path, absolute_file_path]

@abstractmethod
def get_file_acl_permissions(self, file: RemoteFile, logger: logging.Logger) -> Dict[str, Any]:
"""
This is required for connectors that will support syncing
ACL Permissions from files.
"""
return {}
...

@abstractmethod
def load_identity_groups(self, logger: logging.Logger) -> Iterable[Dict[str, Any]]:
"""
This is required for connectors that will support syncing
identities.
"""
yield {}
...

0 comments on commit d30b1ad

Please sign in to comment.