Synchronously checks if the given file or directory has write permissions. Returns true if writable, otherwise false.
Alias: isWritableSync()
Parameters:
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