Change Download Path

Thank you for your reply.
This code returns the path of the project as well as the path in which the download file would be put.
But the file is always downloaded on the default path C:/Downloads and not the Data Files file.
Is there a modification to be made at the level of the setting> Desired Capabilities?