Lines Matching defs:local_path
990 do_download(struct sftp_conn *conn, char *remote_path, char *local_path,
1054 local_fd = open(local_path, O_WRONLY | O_CREAT | (resume ? 0 : O_TRUNC),
1058 local_path, strerror(errno));
1065 local_path, strerror(errno));
1070 "local file is larger than remote", local_path);
1214 "server reordered requests", local_path);
1224 error("Couldn't write to \"%s\": %s", local_path,
1236 if (pflag && chmod(local_path, mode) == -1)
1238 error("Couldn't set mode on \"%s\": %s", local_path,
1245 if (utimes(local_path, tv) == -1)
1247 local_path, strerror(errno));
1366 do_upload(struct sftp_conn *conn, char *local_path, char *remote_path,
1390 if ((local_fd = open(local_path, O_RDONLY, 0)) == -1) {
1392 local_path, strerror(errno));
1397 local_path, strerror(errno));
1402 error("%s is not a regular file", local_path);
1442 start_progress_meter(local_path, sb.st_size,
1462 fatal("Couldn't read from \"%s\": %s", local_path,
1534 error("Couldn't close local file \"%s\": %s", local_path,