From ec2040aca3bf318a7698368e2502ddd958e890aa Mon Sep 17 00:00:00 2001 From: yanghua Date: Fri, 16 Aug 2024 17:00:22 +0800 Subject: [PATCH] Rename split_path to _split_path --- tosfs/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tosfs/core.py b/tosfs/core.py index f0b2d22..f3b375a 100644 --- a/tosfs/core.py +++ b/tosfs/core.py @@ -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: @@ -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.