MockFileSystem.Path.GetTempPath() returns temp directory with no trailing DirectorySeparatorChar #1171
Labels
flag: good-first-issue
Issues that are good for first time contributors
state: released
Issues that are released
type: bug
Issues that describe misbehaving functionality
Describe the bug
When getting the temp path, the returned directory string does not end with DirectorySeparatorChar.
To Reproduce
Value of tempDir = "/temp"
Expected behavior
Should be tempDir = "/temp/"
Additional context
Using .NET 8 MacOS. Same issue on Windows but with drive letter.
https://learn.microsoft.com/en-us/dotnet/api/system.io.path.gettemppath?view=net-8.0&tabs=linux
The text was updated successfully, but these errors were encountered: