Jelajahi Sumber

修改ftp获取文件夹列表方式,解决阿里云服务器获取文件列表错误问题。

Deyauo 9 bulan lalu
induk
melakukan
6b1ba0cd2a

TEMPAT SAMPAH
.vs/Welling_Motor_Debug_Tool/v17/.suo


+ 2 - 5
Welling_Motor_Debug_Tool/ftp.cs

@@ -374,11 +374,8 @@ namespace Welling_Motor_Debug_Tool
                         else if (str.Trim().Substring(0, 1).ToUpper() == "D")
                         {
                             //判断 Unix 风格
-                            string dir = str.Substring(56).Trim();
-                            if (dir != "." && dir != "..")
-                            {
-                                strList.Add(dir);
-                            }
+                            int idxStart = str.LastIndexOf(" ") + 1;
+                            strList.Add(str.Substring(idxStart, str.Length - idxStart));
                         }
                     }                    
                 }

+ 2 - 2
Welling_Motor_Debug_Tool/mainForm.cs

@@ -5806,7 +5806,7 @@ namespace Welling_Motor_Debug_Tool
             //±£´æºÍÉÏ´«
             string LogSavePath = "";
             string LogSaveFileName = "";
-            string ProductInfo = textBox_FacModeScan.Text;
+            string ProductInfo = textBox_FacModeScan.Text.Replace(" ", "_");
             LogSavePath = LocalSavePath + DateTime.Now.ToString("yyyy-MM-dd").Replace("/", "-") + "\\" + ProductInfo;
             if (Directory.Exists(LogSavePath) == false)
             {
@@ -8132,7 +8132,7 @@ namespace Welling_Motor_Debug_Tool
             //±£´æºÍÉÏ´«
             string LogSavePath = "";
             string LogSaveFileName = "";
-            string ProductInfo = textBox_CheckModeScan.Text;
+            string ProductInfo = textBox_CheckModeScan.Text.Replace(" ", "_"); ;
             LogSavePath = LocalSavePath + DateTime.Now.ToString("yyyy-MM-dd").Replace("/", "-") + "\\" + ProductInfo;
             if (Directory.Exists(LogSavePath) == false)
             {

TEMPAT SAMPAH
Welling_Motor_Debug_Tool/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache


TEMPAT SAMPAH
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.csproj.AssemblyReference.cache


+ 1 - 1
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.csproj.CoreCompileInputs.cache

@@ -1 +1 @@
-58d3cb272047d5072673ad501420abcc76397cc9aa216011137f3a7027cd45a3
+78d5d63bfb50008328d896ae1656d70761c00f9d

+ 2 - 0
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.csproj.FileListAbsolute.txt

@@ -86,3 +86,5 @@ D:\笔记本20221223\zhouxiong9\Documents\Tools\motor-debug\Welling_Motor_Debug_
 C:\Users\hero\Documents\Work\SoftDesign\Welling-MidMotor\Welling_Motor_Debug_Tool\obj\Debug\Welling_Motor_Debug_Tool.Version.resources
 D:\笔记本20221223\zhouxiong9\Documents\Tools\motor-debug\Welling_Motor_Debug_Tool\obj\Debug\Welling_Motor_Debug_Tool.DebugForm.resources
 D:\笔记本20221223\zhouxiong9\Documents\Tools\motor-debug\Welling_Motor_Debug_Tool\obj\Debug\Welling_Motor_Debug_Tool.ServerSelect.resources
+C:\Users\hero\Documents\Work\SoftDesign\Welling-MidMotor\Welling_Motor_Debug_Tool\obj\Debug\Welling_Motor_Debug_Tool.DebugForm.resources
+C:\Users\hero\Documents\Work\SoftDesign\Welling-MidMotor\Welling_Motor_Debug_Tool\obj\Debug\Welling_Motor_Debug_Tool.ServerSelect.resources

TEMPAT SAMPAH
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.csproj.GenerateResource.cache


TEMPAT SAMPAH
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.exe


TEMPAT SAMPAH
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.pdb