Skip to content

DirectoryCatalog should not do ToUpper if case sensitivity is enabled #111181

@JoshLove-msft

Description

@JoshLove-msft

Description

This method will call ToUpperInvariant on the file paths for Windows. This causes issues if case-sensitivity has been enabled for a directory. The check where we return early should likely be updated to account for whether the directory has case-sensitivity enabled.

Reproduction Steps

Repro steps can be found here microsoft/typespec#5518

Expected behavior

The file paths should respect case-sensitivity if enabled.

Actual behavior

File paths do not respect case-sensitivity.

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions