|
@@ -4,12 +4,13 @@ using System.Collections;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Diagnostics;
|
|
|
using System.Linq;
|
|
|
+using System.Reflection.Metadata.Ecma335;
|
|
|
using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
namespace BaiduYunBeiFen.Controller
|
|
|
{
|
|
|
- public class PybyCheckClass
|
|
|
+ public class PybyCheckController
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 查询云路径下的文件列表
|
|
@@ -59,11 +60,11 @@ namespace BaiduYunBeiFen.Controller
|
|
|
"<W>",
|
|
|
"Files with non-ASCII names may not be handled correctly.",
|
|
|
"You should set your System Locale to 'UTF-8'.",
|
|
|
- "Current locale is 'cp65001'"
|
|
|
+ "Current locale is",
|
|
|
};
|
|
|
foreach (string Message in MessageList)
|
|
|
{
|
|
|
- if (WarnList.Exists(t => Message.Contains(t)))
|
|
|
+ if (WarnList.Exists(t => Message.Contains(t))||Message.Length<=5)
|
|
|
{
|
|
|
MessageCopy.Remove(Message);
|
|
|
}
|
|
@@ -90,7 +91,7 @@ namespace BaiduYunBeiFen.Controller
|
|
|
{
|
|
|
string[] FileNameSplit = strGetAllMessage[1].Split(".");
|
|
|
string GetFileType = strGetAllMessage[0] == "D" ? "Folder" : FileNameSplit[FileNameSplit.Count() - 1];
|
|
|
- int GetFileSize = Convert.ToInt32(strGetAllMessage[2]);
|
|
|
+ int GetFileSize = strGetAllMessage[0] == "D" ? 0 : Convert.ToInt32(strGetAllMessage[2]);
|
|
|
DateTime GetFileTime = Convert.ToDateTime(strGetAllMessage[3] + strGetAllMessage[4]);
|
|
|
Result.Add(new FileMessageModelClass()
|
|
|
{
|