Skip to content

Commit

Permalink
Workaround for bug in .NET Framework 4.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
slozier committed Dec 8, 2022
1 parent 6b31438 commit 4d4dc82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Src/Microsoft.Scripting/PlatformAdaptationLayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ public string[] GetFileSystemEntries(string path, string searchPattern) {

public virtual string[] GetFileSystemEntries(string path, string searchPattern, bool includeFiles, bool includeDirectories) {
#if FEATURE_FILESYSTEM
// workaround for bug in .NET Framework 4.6.2 - https://github.com/IronLanguages/ironpython3/pull/1601
if (path == ".") {
path += Path.DirectorySeparatorChar;
}
if (includeFiles && includeDirectories) {
return Directory.GetFileSystemEntries(path, searchPattern);
}
Expand Down

0 comments on commit 4d4dc82

Please sign in to comment.