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
Brought to you by Warp, a free terminal reimagined to work like a modern app.
file

Command
Copy
[[ -d file ]]
Tags