diff --git a/TextLocator/Index/IndexCore.cs b/TextLocator/Index/IndexCore.cs index 3f21725bc2ce7327b7170a3e04af005a3804b552..3a33040668b9235cfbd133a5acb9adf78f85a9e5 100644 --- a/TextLocator/Index/IndexCore.cs +++ b/TextLocator/Index/IndexCore.cs @@ -141,7 +141,7 @@ namespace TextLocator.Index { // 非重建 && 文件已经被索引过 bool isUpdate = !create; - bool isExists = !string.IsNullOrEmpty(AppUtil.ReadValue("FileIndex", MD5Util.GetMD5Hash(filePath), "")); + bool isExists = !string.IsNullOrEmpty(AppUtil.ReadValue("FileIndex", filePath, "")); if (isUpdate && isExists) { string skipMsg = "跳过文件:" + filePath; @@ -184,7 +184,7 @@ namespace TextLocator.Index string filePath = taskInfo.FilePath; // 写入已索引标记 - AppUtil.WriteValue("FileIndex", MD5Util.GetMD5Hash(filePath), "1"); + AppUtil.WriteValue("FileIndex", filePath, "1"); // 文件信息 FileInfo fileInfo = new FileInfo(filePath);