1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed file enumerator GetFilePath case where no directory is specified

This commit is contained in:
Brian Fiete 2022-02-12 15:22:23 -05:00
parent c39e6b587a
commit 8c79e26d40

View file

@ -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);
}