Download function to return the path of the files downloaded locally.