Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion databricks/sdk/mixins/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down