use checkmate::isDirectory