Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 623 Bytes

File metadata and controls

22 lines (14 loc) · 623 Bytes

isDirSync(path)

Checks if the given path points to a directory. Returns true if it’s a directory, otherwise false.

Alias: isDirSync()

Parameters:

Example

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