Skip to content

Commit

Permalink
#121 Fixed a bug in the StorageBackend and some docstrings.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsimb committed May 3, 2024
1 parent 989e886 commit 496df3d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions exasol/bucketfs/_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class StorageBackend(Enum):
onprem = auto()
saas = auto()
mounted = ()
mounted = auto()


class PathLike(Protocol):
Expand Down Expand Up @@ -449,15 +449,18 @@ def build_path(**kwargs) -> PathLike:
Arguments:
backend:
This is a mandatory parameter that indicates the BucketFS storage backend.
It can be provided either as a string or as the StorageBackend enumeration.
The available backends are defined in the StorageBackend enumeration,
Currently, these are "onprem", "saas" and "mounted". The parameter value
can be provided either as a string, e.g. "onprem", or as an enum, e.g.
StorageBackend.onprem.
path:
Optional parameter that selects a path within the bucket. If not provided
the returned PathLike objects corresponds to the root of the bucket. Hence,
an alternative way of creating a PathLike pointing to a particular file or
directory is as in the code below.
path = build_path(...) / "the_desired_path"
The rest of the arguments a backend specific.
The rest of the arguments are backend specific.
On-prem arguments:
url:
Expand Down

0 comments on commit 496df3d

Please sign in to comment.