Skip to content

Commit

Permalink
Handle folder arguments with trailing slash.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoltanar committed Dec 2, 2021
1 parent 465a6cc commit e90409b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AGF2BMP2AGF/RunParameters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public ConvertFileData[] GetFiles()
private static string ReplacePath(string inputFile, string inputDirectory, string outputDirectory,
string outputExt, out string partialInputPath, out string partialOutputPath)
{
partialInputPath = inputFile.Substring(inputDirectory.Length + 1);
partialInputPath = Path.GetFileName(inputFile);
partialOutputPath = ReplaceExtension(partialInputPath, outputExt);
var outputFilePath = Path.Combine(outputDirectory ?? inputDirectory, partialOutputPath);
return outputFilePath;
Expand Down

0 comments on commit e90409b

Please sign in to comment.