I would like to check whether a directory exists on the SD card of an Android device using Bash.
I am aware that a similar question was answered here: How can I check if a directory exists in a Bash shell script?
The difference is that when I do
if [ -e /sdcard/myDir ]; then
# magic
fi
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?