add -p option, preserving file timestamps

This commit is contained in:
Ryo Nakamura
2024-02-06 16:15:43 +09:00
parent ff45d9d71b
commit a7f8ad948b
10 changed files with 100 additions and 23 deletions

View File

@@ -98,7 +98,7 @@ void free_path(struct path *p);
/* copy a chunk. either src_sftp or dst_sftp is not null, and another is null */
int copy_chunk(struct chunk *c, sftp_session src_sftp, sftp_session dst_sftp,
int nr_ahead, int buf_sz, size_t *counter);
int nr_ahead, int buf_sz, bool preserve_ts, size_t *counter);
/* just print contents. just for debugging */
void path_dump(struct list_head *path_list);