Skip to content

Commit

Permalink
Fixing FileSystemStore Combine
Browse files Browse the repository at this point in the history
Fixes #1039
  • Loading branch information
sebastienros committed Oct 2, 2017
1 parent 59cbb03 commit f75ec38
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ public string Combine(params string[] paths)
combined = "/" + combined;
}

// Remove the initial '/' if it was not present
if (paths.Length > 0 && !paths[0].StartsWith("/") && combined.StartsWith("/"))
{
combined = combined.TrimStart('/');
}

return combined;
}

Expand Down

0 comments on commit f75ec38

Please sign in to comment.