This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 833 - Path.GetFullPath returns duplicate DirectorySeparatorStr if Directory.GetCurrentDirectory() == DirectorySeparatorStr
: Path.GetFullPath returns duplicate DirectorySeparatorStr if Directory.GetCurr...
Status: NEW
Product: Class Libraries
Classification: Mono
Component: CORLIB
: 2.10.x
: All All
: --- minor
: ---
Assigned To: Bugzilla
:
:
:
:
  Show dependency treegraph
 
Reported: 2011-09-15 09:54 EDT by Andrew Finnell
Modified: 2011-09-15 10:57 EDT (History)
1 user (show)

See Also:
Tags: path
Test Case URL:
External Submit: ---


Attachments

Description Andrew Finnell 2011-09-15 09:54:50 EDT
When Directory.GetCurrentDirectory() == '/' on a Unix system,
Path.GetFullPath("test.txt") return "//test.txt". Simple check needs to be
added to see if the current directory ends in a DirectorySeparatorStr.
Comment 1 Andrew Finnell 2011-09-15 10:57:23 EDT
https://github.com/mono/mono/pull/171

Note You need to log in before you can comment on or make changes to this bug.