Lines Matching refs:local_path
1153 const char *local_path, Attrib *a, int preserve_flag, int resume_flag, in do_download() argument
1222 local_fd = open(local_path, in do_download()
1226 local_path, strerror(errno)); in do_download()
1233 local_path, strerror(errno)); in do_download()
1237 error("\"%s\" has negative size", local_path); in do_download()
1242 "local file is larger than remote", local_path); in do_download()
1393 "server reordered requests", local_path); in do_download()
1397 error("ftruncate \"%s\": %s", local_path, in do_download()
1406 error("Couldn't write to \"%s\": %s", local_path, in do_download()
1419 if (preserve_flag && chmod(local_path, mode) == -1) in do_download()
1421 error("Couldn't set mode on \"%s\": %s", local_path, in do_download()
1429 if (utimes(local_path, tv) == -1) in do_download()
1431 local_path, strerror(errno)); in do_download()
1434 debug("syncing \"%s\"", local_path); in do_download()
1437 local_path, strerror(errno)); in do_download()
1559 do_upload(struct sftp_conn *conn, const char *local_path, in do_upload() argument
1585 if ((local_fd = open(local_path, O_RDONLY, 0)) == -1) { in do_upload()
1587 local_path, strerror(errno)); in do_upload()
1592 local_path, strerror(errno)); in do_upload()
1597 error("%s is not a regular file", local_path); in do_upload()
1660 start_progress_meter(local_path, sb.st_size, in do_upload()
1680 fatal("Couldn't read from \"%s\": %s", local_path, in do_upload()
1759 error("Couldn't close local file \"%s\": %s", local_path, in do_upload()