From ec785ff33eb1c9ddde2ccba88d6e522f653cc33e Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Sun, 23 Oct 2022 00:14:28 +0900 Subject: fix stat output --- src/file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/file.c') diff --git a/src/file.c b/src/file.c index 6b309a1..54ce774 100644 --- a/src/file.c +++ b/src/file.c @@ -724,8 +724,10 @@ int chunk_copy(struct chunk *c, sftp_session sftp, size_t buf_sz, size_t *counte if (ret < 0) return ret; - if (refcnt_dec(&f->refcnt) == 0) + if (refcnt_dec(&f->refcnt) == 0) { f->state = FILE_STATE_DONE; + pr("copy done: %s\n", f->path); + } return ret; } -- cgit v1.2.3