Parcourir la source

ダウンロード完了条件を修正

ファイル名に.crdownloadが含まれていると、ダウンロード中と判断
master
sosuke.iwabuchi il y a 4 ans
Parent
révision
a751a0b39f
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. +6
    -1
      CSVDownloader/Web/WebController.cs

+ 6
- 1
CSVDownloader/Web/WebController.cs Voir le fichier

@@ -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;


Chargement…
Annuler
Enregistrer