diff --git a/source/core/FtpFileSystem.cpp b/source/core/FtpFileSystem.cpp index ee52d10c9..c32bb1af0 100644 --- a/source/core/FtpFileSystem.cpp +++ b/source/core/FtpFileSystem.cpp @@ -2400,7 +2400,7 @@ void __fastcall TFTPFileSystem::ReadCurrentDirectory() if (Result) { - if ((Path.Length() > 0) && (Path[1] != L'/')) + if ((Path.Length() > 0) && !UnixIsAbsolutePath(Path)) { Path = L"/" + Path; }