User:Unixguy/sandbox

For the  argument, if the specified file exists and is a directory, the   exit value indicates that the current process has permission to change   into the directory.