Skip to content

Commit

Permalink
Rename split_path to _split_path
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghua committed Aug 16, 2024
1 parent 35c5605 commit ec2040a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tosfs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def _lsdir(
:param versions: Whether to list object versions.
:return: A list of objects in the bucket.
"""
bucket, key, _ = self.split_path(path)
bucket, key, _ = self._split_path(path)
if not prefix:
prefix = ""
if key:
Expand Down Expand Up @@ -272,7 +272,7 @@ def _listdir(
logger.error("Tosfs failed with unknown error: %s", e)
raise TosfsError(f"Tosfs failed with unknown error: {e}") from e

def split_path(self, path) -> Tuple[str, str, Optional[str]]:
def _split_path(self, path) -> Tuple[str, str, Optional[str]]:
"""
Normalise tos path string into bucket and key.
Expand Down

0 comments on commit ec2040a

Please sign in to comment.