Set boolean b to true if path exists on the filesystem and is a directory; false otherwise.
sysutils
b := DirectoryExists(path);
import "os"
info, err := os.Stat(path) b := !os.IsNotExist(err) && info.IsDir()
use 5.010;
my $b = -e -d $path;
import os
b = os.isdir(path)
b = Dir.exist?( path )
use std::path::Path;
let b: bool = Path::new(path).is_dir();
No security, no password. Other people might choose the same nickname.