I'm using the Amplify Framework to download a file from S3 and have been following AWS's documentation. I've successfully downloaded the file, but I have no idea where it is saved, or how to access it. The documentation doesn't say, and I'm a bit confused as it doesn't appear in the project files. Can someone explain it to me, or point me in the right direction? What are the next steps to access the files content? In this case it's a plain text file, but once I've read that file, I intend to move on to reading JSON files.
Here's the code I'm using to download the file.
Amplify.Storage.downloadFile(
"myfile.txt",
new File(getApplicationContext().getFilesDir() + "/download.txt"),
result -> Log.i("MyAmplifyApp", "Successfully downloaded: " + result.getFile().getName()),
error -> Log.e("MyAmplifyApp", "Download Failure", error)
);