Skip to content

Commit

Permalink
handle spaces in dir names
Browse files Browse the repository at this point in the history
  • Loading branch information
karan-batavia committed Apr 2, 2024
1 parent d50b53c commit fc81eb9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DotNetAstGen/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static void Main(string[] args)
// Handle .cs
_ParseSourceCode(
options.InputFilePath,
new DirectoryInfo(options.InputFilePath),
new DirectoryInfo(options.OutputDirectory),
options.ExclusionRegex);
Expand All @@ -69,13 +69,15 @@ public static void Main(string[] args)
});
}

private static void _ParseSourceCode(string inputPath, DirectoryInfo rootOutputPath, string? exclusionRegex)
private static void _ParseSourceCode(DirectoryInfo inputDirPath, DirectoryInfo rootOutputPath, string? exclusionRegex)
{
if (!rootOutputPath.Exists)
{
rootOutputPath.Create();
}

var inputPath = inputDirPath.FullName;

if (Directory.Exists(inputPath))
{
_logger?.LogInformation("Parsing directory {dirName}", inputPath);
Expand Down

0 comments on commit fc81eb9

Please sign in to comment.