https://winscp.net/tracker/2300 Source commit: 653c803d0d0d2210133463b7c67432c34155b5e3
@@ -2047,7 +2047,7 @@ void __fastcall TFTPFileSystem::ReadCurrentDirectory()
if (Result)
{
- if ((Path.Length() > 0) && !UnixIsAbsolutePath(Path))
+ if (Path.IsEmpty() || !UnixIsAbsolutePath(Path))
Path = L"/" + Path;
}