Skip to content

Avoid network access in build_path #270

@ckunki

Description

@ckunki

Currently, function build_path()

  • calls _create_onprem_bucket()
  • which calls buckets = service.buckets in order to verify if the requested bucket exists.
  • Which requires network access.

def build_path(**kwargs) -> PathLike:

buckets = service.buckets

However, the user might not expect network access when only building an intentional BucketFS location.
Additionally, maybe the BucketFS to access is not available at this moment.

The current ticket therefore requests, to

  • verify the bucket to exist only later on, when actually accessing the bucket.
  • Optionally add a separate function for checking the validity

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnwanted / harmful behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions