Explorar el Código

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

ファイル名に.crdownloadが含まれていると、ダウンロード中と判断
master
sosuke.iwabuchi hace 4 años
padre
commit
a751a0b39f
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. +6
    -1
      CSVDownloader/Web/WebController.cs

+ 6
- 1
CSVDownloader/Web/WebController.cs Ver fichero

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


Cargando…
Cancelar
Guardar