title: Android - Missing files between file explorers
body: <p>I'm trying to access the two files, Spring v2.json and Test.json, in my Android app. However, I will add them using Windows with my phone connected, but when I run my app, the file seems to disappear. </p>
  
  <p><strong>Getting the file</strong></p>
  
  <pre><code>    File file = new File(getExternalFilesDir(null), "Spring v2.json");
  </code></pre>
  
  <p><strong>Check is the file exists</strong></p>
  
  <pre><code>  if (file.exists()) {
      TransferObserver observer = transferUtility.download(
          "easelbucket",    // bucket to download from
          "sections/" + objectKey,        // key for object to be downloaded
          file          // file to download object to
      );
    } else {
      Toast.makeText(this, "File does not exist", Toast.LENGTH_SHORT).show();
      return null;
    }
  </code></pre>
  
  <p>I know that the file stops existing because (1) the if statement enters the else block, and (2) the app crashes when it attempts to use the result of the file.</p>
  
  <p><a href="https://i.stack.imgur.com/hrSsH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hrSsH.png" alt="Windows File Explorer"></a><a href="https://i.stack.imgur.com/2D4E7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2D4E7.png" alt="Android File Explorer"></a></p>