Skip to content

Commit

Permalink
Yaml Validator Bug: same file names in different folder cause error (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
abaskk-msft authored Jul 8, 2024
1 parent cfd5604 commit e0246be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/YamlValidator/YamlLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public IReadOnlyDictionary<string, string> Load(string filePath, string pathType
var yamlFiles = Directory.EnumerateFiles(filePath, "*" + Constants.YamlFileExtension, SearchOption.AllDirectories);
foreach (var filename in yamlFiles)
{
var fileName = Path.GetFileName(filename);
var fileName = Path.GetFullPath(filename);
var yamlText = Utility.ReadFileData(filename);
deserializedYaml.Add(fileName, yamlText);
}
Expand Down

0 comments on commit e0246be

Please sign in to comment.