浏览代码

Bug 1401: Support for FTP directory listings with name only

https://winscp.net/tracker/1401

Source commit: 41a7b04b3cfb9586a8f28b466445916dcc3b6b66
Martin Prikryl 9 年之前
父节点
当前提交
3f8b6393a6
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      source/filezilla/FtpListResult.cpp

+ 7 - 0
source/filezilla/FtpListResult.cpp

@@ -524,6 +524,13 @@ BOOL CFtpListResult::parseLine(const char *lineToParse, const int linelen, t_dir
   if (parseAsIBMMVSPDS2(lineToParse, linelen, direntry))
     return TRUE;
 
+  // name-only entries
+  if (strchr(lineToParse, ' ') == NULL)
+  {
+    copyStr(direntry.name, 0, lineToParse, strlen(lineToParse));
+    return TRUE;
+  }
+
   return FALSE;
 }