/usr/bin/test -d some_file

30 Jun 2013

This is to test if a directory exists. We can use it with file as well

Give it a kudos