Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 675 Bytes

File metadata and controls

22 lines (14 loc) · 675 Bytes

isWritableSync(path)

Synchronously checks if the given file or directory has write permissions. Returns true if writable, otherwise false.

Alias: isWritableSync()

Parameters:

Example

const fs = require('fsmate');

// If path does not exists any file or folder then throwing error
// Otherwise returns true/false
fs.isWritableSync('/var/www/index.html');

For the asynchronous version, see: isWritable