Skip to content

Commit

Permalink
Fix a bug where Folder.GetFiles(string globPattern) was returning the…
Browse files Browse the repository at this point in the history
… wrong relative paths (#590)
  • Loading branch information
thomhurst authored Sep 2, 2024
1 parent a77dd92 commit 9df4b08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ModularPipelines.Build/ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix a bug where Folder.GetFiles(string globPattern) was returning the wrong relative paths
2 changes: 1 addition & 1 deletion src/ModularPipelines/FileSystem/Folder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public IEnumerable<File> GetFiles(string globPattern)
.AddInclude(globPattern)
.Execute(new DirectoryInfoWrapper(DirectoryInfo))
.Files
.Select(x => new File(x.Path))
.Select(x => new File(System.IO.Path.Combine(this, x.Path)))
.Distinct();
}

Expand Down

0 comments on commit 9df4b08

Please sign in to comment.