version 1.89, 2009/08/18 18:36:20 |
version 1.90, 2009/10/11 10:41:26 |
|
|
new_dst = path_append(dst, filename); |
new_dst = path_append(dst, filename); |
new_src = path_append(src, filename); |
new_src = path_append(src, filename); |
|
|
if (S_ISDIR(DTTOIF(dp->d_type))) { |
if (lstat(new_src, &sb) == -1) { |
|
logit("%s: lstat failed: %s", filename, |
|
strerror(errno)); |
|
ret = -1; |
|
} else if (S_ISDIR(sb.st_mode)) { |
if (strcmp(filename, ".") == 0 || |
if (strcmp(filename, ".") == 0 || |
strcmp(filename, "..") == 0) |
strcmp(filename, "..") == 0) |
continue; |
continue; |
|
|
if (upload_dir_internal(conn, new_src, new_dst, |
if (upload_dir_internal(conn, new_src, new_dst, |
pflag, depth + 1, printflag) == -1) |
pflag, depth + 1, printflag) == -1) |
ret = -1; |
ret = -1; |
} else if (S_ISREG(DTTOIF(dp->d_type)) ) { |
} else if (S_ISREG(sb.st_mode)) { |
if (do_upload(conn, new_src, new_dst, pflag) == -1) { |
if (do_upload(conn, new_src, new_dst, pflag) == -1) { |
error("Uploading of file %s to %s failed!", |
error("Uploading of file %s to %s failed!", |
new_src, new_dst); |
new_src, new_dst); |