The name of the directory to be checked
String dirName(Directory dir) => basename(canonicalize(dir.path));