358 f->bytes = s.st_size; |
358 f->bytes = s.st_size; |
359 upload->progress.total_files++; |
359 upload->progress.total_files++; |
360 upload->progress.total_bytes += s.st_size; |
360 upload->progress.total_bytes += s.st_size; |
361 ui_threadpool_job(upload->queue, upload->dialog, qthr_file_upload, f, uithr_file_uploaded, f); |
361 ui_threadpool_job(upload->queue, upload->dialog, qthr_file_upload, f, uithr_file_uploaded, f); |
362 } |
362 } |
|
363 } else { |
|
364 // cannot stat file |
|
365 |
363 } |
366 } |
364 } // TODO: else error msg |
367 } // TODO: else error msg |
365 |
368 |
366 ui_threadpool_job(upload->queue, upload->dialog, qthr_upload_finished, upload, uithr_upload_finished, upload); |
369 ui_threadpool_job(upload->queue, upload->dialog, qthr_upload_finished, upload, uithr_upload_finished, upload); |
367 |
370 |