dotnet / dotnet/dotnet-api-docs

Does Path.Combine() alter the case of the characters in the strings?

Open
#1,816 0 comments 0 reactions 0 assignees View on GitHub
area-System.IO dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

The documentation doesn't mention if Path.Combine() could or would change the case of any characters in the path strings. I assume that it wouldn't; however, I am using this function to interact with Git, which is case sensitive, so I don't want to assume. :)

Could you specifically address case-sensitivity issues (or the lack thereof) with regard to Path.Combine() and update/add to your examples as appropriate? Thanks!

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: aac00ba0-5181-9c04-fc8d-7263adcd3636
* Version Independent ID: a5b123f2-2ed2-cc15-e1f3-bd117b7b1275
* Content: [Path.Combine Method (System.IO)](https://docs.microsoft.com/en-us/dotnet/api/system.io.path.combine?view=netframework-4.7.2)
* Content Source: [xml/System.IO/Path.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.IO/Path.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.