AXL_Test is only meant to tell the caller whether calling AXL_Wait will block or not. The caller must always call AXL_Wait whether they have called AXL_Test or not. We don't want AXL_Test to do any "complete" work, it should only check and report status. Thus, we don't want to rename files here:
Also, we should consider a failed rename call to be a failed transfer. We should detect and report errors there, since it could mean that the temporary file never actually changed to the final file name:
AXL_Test is only meant to tell the caller whether calling AXL_Wait will block or not. The caller must always call AXL_Wait whether they have called AXL_Test or not. We don't want AXL_Test to do any "complete" work, it should only check and report status. Thus, we don't want to rename files here:
https://github.com/ECP-VeloC/AXL/blob/d738fb7a973367f57d9480cba9b2b63717920374/src/axl.c#L789
Also, we should consider a failed rename call to be a failed transfer. We should detect and report errors there, since it could mean that the temporary file never actually changed to the final file name:
https://github.com/ECP-VeloC/AXL/blob/d738fb7a973367f57d9480cba9b2b63717920374/src/axl.c#L723
We might also want to consider a transfer to have failed if we fail to copy the metadata:
https://github.com/ECP-VeloC/AXL/blob/d738fb7a973367f57d9480cba9b2b63717920374/src/axl_io.c#L615