Skip to content

Commit 9df4b08

Browse files
authored
Fix a bug where Folder.GetFiles(string globPattern) was returning the wrong relative paths (#590)
1 parent a77dd92 commit 9df4b08

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Fix a bug where Folder.GetFiles(string globPattern) was returning the wrong relative paths

src/ModularPipelines/FileSystem/Folder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public IEnumerable<File> GetFiles(string globPattern)
141141
.AddInclude(globPattern)
142142
.Execute(new DirectoryInfoWrapper(DirectoryInfo))
143143
.Files
144-
.Select(x => new File(x.Path))
144+
.Select(x => new File(System.IO.Path.Combine(this, x.Path)))
145145
.Distinct();
146146
}
147147

0 commit comments

Comments
 (0)