diff --git a/DTLib/Filesystem/IOPath.cs b/DTLib/Filesystem/IOPath.cs index d06c9ca..421a6d1 100644 --- a/DTLib/Filesystem/IOPath.cs +++ b/DTLib/Filesystem/IOPath.cs @@ -28,12 +28,16 @@ public readonly struct IOPath static string FixSeparators(char[] path) { int length = path.Length; - if (path[path.Length-1]==Path.Sep || path[path.Length-1]==Path.NotSep) + if (path[length-1] == Path.Sep || path[length-1] == Path.NotSep) length--; // removing trailing sep - for(int i=0; i doesnt starts with <{baseDir}"); - return path.Substring(baseDir.Length); + return path.Substring(baseDir.Length+1); } } \ No newline at end of file