Support back and forward slashes as path seperator
This commit is contained in:
@@ -16,7 +16,10 @@ public static class PathStringExtensions
|
|||||||
|
|
||||||
for (int x = path.Length - 1; x >= 0; x--)
|
for (int x = path.Length - 1; x >= 0; x--)
|
||||||
{
|
{
|
||||||
if (chars[x] == Path.DirectorySeparatorChar)
|
if (chars[x] == '/')
|
||||||
|
return "";
|
||||||
|
|
||||||
|
if (chars[x] == '\\')
|
||||||
return "";
|
return "";
|
||||||
|
|
||||||
if (chars[x] == '.')
|
if (chars[x] == '.')
|
||||||
|
|||||||
Reference in New Issue
Block a user