浏览代码

Issue 2300 – Compatibility with FTP servers that return an empty path in root

https://winscp.net/tracker/2300

Source commit: 653c803d0d0d2210133463b7c67432c34155b5e3
Martin Prikryl 1 年之前
父节点
当前提交
16e9c0ccec
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      source/core/FtpFileSystem.cpp

+ 1 - 1
source/core/FtpFileSystem.cpp

@@ -2047,7 +2047,7 @@ void __fastcall TFTPFileSystem::ReadCurrentDirectory()
 
         if (Result)
         {
-          if ((Path.Length() > 0) && !UnixIsAbsolutePath(Path))
+          if (Path.IsEmpty() || !UnixIsAbsolutePath(Path))
           {
             Path = L"/" + Path;
           }