Skip to content

Conversation

@adreed-msft
Copy link
Member

Description

  • Feature / Bug Fix: Gets prefilter similar to blob and applies it on non-recursive enumerations

  • Related Links:

  • PBI 34000420

Type of Change

  • Bug fix
  • New feature
  • Documentation update required
  • Code quality improvement
  • Other (describe):

How Has This Been Tested?

Manually tested; service side prefixes can be difficult to test.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds prefix-based filtering optimization to Azure Files directory enumeration to improve scanning performance. The change enables service-side filtering using include patterns (e.g., --include-pattern "foo*" would apply a "foo" prefix) when listing files within each directory.

  • Retrieves the enumeration pre-filter prefix from filters before enumerating directories
  • Passes the prefix to the Azure Files API's Prefix option when non-empty
  • Aligns Azure Files traverser with blob traverser's optimization approach

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gapra-msft
Copy link
Member

As part of this PR can we confirm we have some tests for FileShare with filtering flags?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants