How to make sure to get a secure sharing downloads?

Hi guys,
How to make sure to get a secure sharing downloads? Whenever we share our downloads from one computer to another, how can we be sure that we are not getting any malicious software from the server or in another unit of peace? I have to share some folders and I need a secure file sharing.
Expecting some advice, thank you.
