Skip to content

Commit

Permalink
Wizard: Strip trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
Kha committed Aug 26, 2014
1 parent bc06158 commit 1133444
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Wizard/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ static void TryCopy(string src, string dest)

static IEnumerable<string> RelativeEnumerateFiles(string path)
{
path = path.TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
return Directory.EnumerateFiles(path).Select(file => file.Substring(path.Length + 1));
}

Expand Down

0 comments on commit 1133444

Please sign in to comment.