Changeset 5607 for wire/trunk
- Timestamp:
- 07/22/08 11:00:56 (1 month ago)
- Files:
-
- wire/trunk/Makefile.in (modified) (1 diff)
- wire/trunk/wire/transfers.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wire/trunk/Makefile.in
r5037 r5607 18 18 SUBDIRS = libwired 19 19 20 WIREOBJECTS = $(addprefix $(objdir)/wire/,$(notdir $(patsubst %.c,%.o,$(shell find $(abs_top_srcdir)/wire -name " *.c"))))20 WIREOBJECTS = $(addprefix $(objdir)/wire/,$(notdir $(patsubst %.c,%.o,$(shell find $(abs_top_srcdir)/wire -name "[a-z]*.c")))) 21 21 22 22 DEFS = @DEFS@ wire/trunk/wire/transfers.c
r5599 r5607 343 343 344 344 local_path = wi_string_by_appending_path_component(wi_string_by_normalizing_path(wr_download_path), local_path); 345 345 parent_path = wi_string_by_deleting_last_path_component(local_path); 346 347 wi_file_create_directory(parent_path, 0755); 348 346 349 if(wr_file_type(file) == WR_FILE_FILE) { 347 350 wi_array_add_data(transfer->remote_paths, remote_path); … … 351 354 transfer->total_size += wr_file_size(file); 352 355 } else { 353 parent_path = wi_string_by_deleting_last_path_component(local_path);354 355 wi_file_create_directory(parent_path, 0755);356 357 356 if(!wi_file_exists(local_path, NULL)) { 357 wi_log_info(WI_STR("create %@"), local_path); 358 358 359 if(!wi_file_create_directory(local_path, 0755)) { 359 360 wr_printf_prefix(WI_STR("get: Unable to create directory at %@: %m"), … … 540 541 wi_file_stat_t sb; 541 542 543 if(wi_array_count(transfer->local_paths) == 0) { 544 wr_transfer_start_next_or_stop(transfer); 545 546 return; 547 } 548 542 549 if(transfer->type == WR_TRANSFER_DOWNLOAD) { 543 550 local_path = wi_array_first_data(transfer->local_paths); … … 589 596 transfer->file_offset); 590 597 } else { 591 if(wi_array_count(transfer->local_paths) == 0) {592 wr_transfer_start_next_or_stop(transfer);593 594 return;595 }596 597 598 local_path = wi_array_first_data(transfer->local_paths); 598 599
