Changeset 4375
- Timestamp:
- 09/20/06 17:59:32 (2 years ago)
- Files:
-
- wire/trunk/wire/commands.c (modified) (2 diffs)
- wire/trunk/wire/transfers.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wire/trunk/wire/commands.c
r4197 r4375 656 656 657 657 static void wr_cmd_get(wi_array_t *arguments) { 658 u nsigned int i, count;658 uint32_t i, count; 659 659 660 660 count = wi_array_count(arguments); 661 661 662 662 for(i = 0; i < count; i++) 663 wr_transfer_download( WI_ARRAY(arguments, i));663 wr_transfer_download(wr_files_full_path(WI_ARRAY(arguments, i))); 664 664 665 665 wr_draw_transfers(true); … … 1346 1346 1347 1347 static void wr_cmd_stat(wi_array_t *arguments) { 1348 wi_string_t *path; 1349 1350 path = wr_files_full_path(WI_ARRAY(arguments, 0)); 1348 uint32_t i, count; 1351 1349 1352 1350 wr_stat_state = WR_STAT_FILE; 1353 wr_send_command(WI_STR("STAT %@"), path); 1351 1352 count = wi_array_count(arguments); 1353 1354 for(i = 0; i < count; i++) 1355 wr_send_command(WI_STR("STAT %@"), wr_files_full_path(WI_ARRAY(arguments, i))); 1354 1356 } 1355 1357 wire/trunk/wire/transfers.c
r4028 r4375 148 148 149 149 transfer = wi_autorelease(wr_transfer_init_download(wr_transfer_alloc())); 150 transfer->path = wi_retain( wr_files_full_path(path));150 transfer->path = wi_retain(path); 151 151 transfer->name = wi_retain(wi_string_last_path_component(transfer->path)); 152 152 transfer->local_path = wi_retain(wi_user_home());
