From a751a0b39f8d01db09dd827d23a4d4db57936a88 Mon Sep 17 00:00:00 2001 From: "sosuke.iwabuchi" Date: Thu, 12 Aug 2021 09:25:01 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=80=E3=82=A6=E3=83=B3=E3=83=AD=E3=83=BC?= =?UTF-8?q?=E3=83=89=E5=AE=8C=E4=BA=86=E6=9D=A1=E4=BB=B6=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=20=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E5=90=8D?= =?UTF-8?q?=E3=81=AB.crdownload=E3=81=8C=E5=90=AB=E3=81=BE=E3=82=8C?= =?UTF-8?q?=E3=81=A6=E3=81=84=E3=82=8B=E3=81=A8=E3=80=81=E3=83=80=E3=82=A6?= =?UTF-8?q?=E3=83=B3=E3=83=AD=E3=83=BC=E3=83=89=E4=B8=AD=E3=81=A8=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CSVDownloader/Web/WebController.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CSVDownloader/Web/WebController.cs b/CSVDownloader/Web/WebController.cs index 1741ee0..d729f05 100644 --- a/CSVDownloader/Web/WebController.cs +++ b/CSVDownloader/Web/WebController.cs @@ -156,7 +156,12 @@ namespace CSVDownloader.Web { if (files.Length != 0) { var file = files[0]; - if (file.Length == last_size) { + + if (file.Name.Contains(".crdownload")) { + // ダウンロード継続 + last_size = file.Length; + logger_.Info($"ダウンロード監視中:{file.Name} size:{file.Length}"); + } else if (file.Length == last_size) { // ダウンロード完了 logger_.Info($"ダウンロード完了:{file.Name} size:{file.Length}"); complete_filename = file.Name;