lib/utils.js
// Check if the target is a directory.
Check if the target is a directory.
Check if the target is a directory .
function isDirectory(o) {
  try {
    return fs.lstatSync(o).isDirectory()
  } catch (e) {
    return false
  }
}
function isDirectory ( o ) { try { return fs . lstatSync ( o ) . isDirectory ( ) } catch ( e ) { return false } }
Check if the target is a directory.
Check if the target is a directory .
// throws an error if path doesnt exist