From e81162098ccb5f3e71bb35592ac311e882367ccf Mon Sep 17 00:00:00 2001 From: Patrick Tawil Date: Fri, 19 Sep 2025 14:01:58 -0400 Subject: [PATCH 1/2] fix recursive bug --- databricks/sdk/mixins/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/databricks/sdk/mixins/files.py b/databricks/sdk/mixins/files.py index 2cdaf3532..40514099e 100644 --- a/databricks/sdk/mixins/files.py +++ b/databricks/sdk/mixins/files.py @@ -487,7 +487,7 @@ def list(self, *, recursive=False) -> Generator[files.FileInfo, None, None]: next_path = queue.popleft() for file in self._api.list_directory_contents(next_path.as_string): if recursive and file.is_directory: - queue.append(self.child(file.name)) + queue.append(_VolumesPath(self._api, file.path)) if not recursive or not file.is_directory: yield files.FileInfo( path=file.path, From 5d987095fea3d7c156a0914f83fa370d5ecb2c38 Mon Sep 17 00:00:00 2001 From: Patrick Tawil Date: Fri, 19 Sep 2025 14:34:10 -0400 Subject: [PATCH 2/2] include next_changelog update --- NEXT_CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index 869a88d02..56a771e7b 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -8,6 +8,8 @@ ### Bug Fixes +* Fix the bug where the SDK would fail to properly recursively traverse directories in the _VolumesPath.list function + ### Documentation ### Internal Changes