Check if a file exists and is directory

Returns an exit code of 0 if the file exists and is a directory.

Authored by: Sidratul Muntaha
file

Command
Copy
[[ -d file ]]
Tags