From 8c79e26d404d7320821e270e923cd50fcac4a401 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sat, 12 Feb 2022 15:22:23 -0500 Subject: [PATCH] Fixed file enumerator GetFilePath case where no directory is specified --- BeefLibs/corlib/src/IO/Directory.bf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BeefLibs/corlib/src/IO/Directory.bf b/BeefLibs/corlib/src/IO/Directory.bf index df3f54b9..232669bf 100644 --- a/BeefLibs/corlib/src/IO/Directory.bf +++ b/BeefLibs/corlib/src/IO/Directory.bf @@ -193,7 +193,8 @@ namespace System.IO public void GetFilePath(String outPath) { Path.GetDirectoryPath(mSearchStr, outPath); - outPath.Append(Path.DirectorySeparatorChar); + if (!outPath.IsEmpty) + outPath.Append(Path.DirectorySeparatorChar); GetFileName(outPath); }