From 98e0417e2ea16c34bff5a2b77ffe4d70e760a2b0 Mon Sep 17 00:00:00 2001 From: trueai-org Date: Fri, 14 Jun 2024 10:33:54 +0800 Subject: [PATCH] fix: downlaod .e file --- src/MDriveSync.Core/DownloadManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MDriveSync.Core/DownloadManager.cs b/src/MDriveSync.Core/DownloadManager.cs index 519a4a4..5796c53 100644 --- a/src/MDriveSync.Core/DownloadManager.cs +++ b/src/MDriveSync.Core/DownloadManager.cs @@ -485,7 +485,7 @@ private async void StartDownloadTask(DownloadTask downloadTask) throw new LogicException("未找到指定的任务配置"); } - var fileName = downloadTask.Name; + var fileName = downloadTask.Name?.TrimSuffix(".e"); if (!string.IsNullOrWhiteSpace(downloadTask.FilePath)) { fileName = Path.GetFileName(downloadTask.FilePath);