Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating resource.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
import "os"
info, err := os.Stat(path)
b := !os.IsNotExist(err) && info.IsDir()
use 5.010;
my $b = -e -d $path;
b = Dir.exist?( path )
import os
b = os.isdir(path)