title: Check if directory exists on Android SD card with Bash
body: <p>I would like to check whether a directory exists on the SD card of an Android device using Bash.</p>
  <p>I am aware that a similar question was answered here: <a href="https://stackoverflow.com/questions/59838/how-to-check-if-a-directory-exists-in-a-bash-shell-script">How can I check if a directory exists in a Bash shell script?</a></p>
  <p>The difference is that when I do</p>
  <pre><code>if [ -e /sdcard/myDir ]; then
       # magic
  fi
  </code></pre>
  <p>it is checked whether /sdcard/myDir exists on my computer and not on the phone. How can I check if the folder exists on the phone?</p>