| 459 | | path = wi_file_temporary_path_with_prefix_in_directory( |
|---|
| 460 | | wi_string_with_format(WI_STR(".%@"), realfromname), |
|---|
| 461 | | wi_string_by_deleting_last_path_component(realfrompath)); |
|---|
| 462 | | |
|---|
| 463 | | result = wi_file_rename(realfrompath, path); |
|---|
| 464 | | |
|---|
| 465 | | if(result) |
|---|
| 466 | | result = wi_file_rename(path, realtopath); |
|---|
| | 459 | path = wi_file_temporary_path_with_template(wi_string_with_format(WI_STR("%@/.%@.XXXXXXXX"), |
|---|
| | 460 | wi_string_by_deleting_last_path_component(realfrompath), |
|---|
| | 461 | realfromname)); |
|---|
| | 462 | |
|---|
| | 463 | if(path) { |
|---|
| | 464 | result = wi_file_rename(realfrompath, path); |
|---|
| | 465 | |
|---|
| | 466 | if(result) |
|---|
| | 467 | result = wi_file_rename(path, realtopath); |
|---|
| | 468 | } |
|---|