diff --git a/Src/Microsoft.Scripting/PlatformAdaptationLayer.cs b/Src/Microsoft.Scripting/PlatformAdaptationLayer.cs index 408ad4de..c56297f2 100644 --- a/Src/Microsoft.Scripting/PlatformAdaptationLayer.cs +++ b/Src/Microsoft.Scripting/PlatformAdaptationLayer.cs @@ -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); }