Checks if the given path points to a directory. Returns true if it’s a directory, otherwise false.
Alias: isDirSync()
Parameters:
const fs = require('fsmate');
// If path does not exists any file or folder then throwing error
// Otherwise returns true/false
fs.isDirSync('your-path');For the asynchronous version, see: isDir