Skip to content

Commit

Permalink
Implement max_recursionfor hierarchical namespace file info selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Newton committed Oct 4, 2024
1 parent 0e7e966 commit b9d6ed2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cpp/src/arrow/filesystem/azurefs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,11 @@ class AzureFileSystem::Impl {
if (path.Name == base_location.path && !path.IsDirectory) {
return NotADir(base_location);
}
acc_results->push_back(FileInfoFromPath(base_location.container, path));
if (internal::GetAbstractPathDepth(path.Name) -
internal::GetAbstractPathDepth(base_location.path) - 1 <=
select.max_recursion) {
acc_results->push_back(FileInfoFromPath(base_location.container, path));
}
}
}
} catch (const Storage::StorageException& exception) {
Expand Down

0 comments on commit b9d6ed2

Please sign in to comment.