Skip to content

Normalize root paths in PackageFolderReader - #7777

Merged
zivkan merged 2 commits into
devfrom
dev-zivkan-PackageFolderReader-cache-root-path
Oct 16, 2026
Merged

zivkan merged 2 commits into
devfrom
dev-zivkan-PackageFolderReader-cache-root-path

Conversation

@zivkan

@zivkan zivkan commented Oct 14, 2026

Copy link
Copy Markdown
Member

Bug

Fixes: refactor

Description

Small refactor. Cache the root directory with a trailing slash, so it doesn't need to be re-computed for every file. Also, don't create the FileInfo instance until after validation passes.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc. N/A

@zivkan
zivkan requested a review from a team as a code owner October 14, 2026 23:31
donnie-msft
donnie-msft previously approved these changes Oct 14, 2026
@zivkan
zivkan force-pushed the dev-zivkan-PackageFolderReader-cache-root-path branch from 5d35871 to 0ee0321 Compare October 15, 2026 19:04
@zivkan
zivkan merged commit 91c2a16 into dev Oct 16, 2026
17 of 18 checks passed
@zivkan
zivkan deleted the dev-zivkan-PackageFolderReader-cache-root-path branch October 16, 2026 02:51
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.

2 participants