title: What is the java.nio.file.Files equivalent of java.io.File.setWritable()?
body: <p>The <code>java.io.File.setWritable()</code> method allows you to set a file to be writable for everybody on filesystems that support this in a platform independent way.</p>
  <p><a href="https://docs.oracle.com/javase/7/docs/api/java/io/File.html#setWritable(boolean,%20boolean)" rel="nofollow noreferrer">https://docs.oracle.com/javase/7/docs/api/java/io/File.html#setWritable(boolean,%20boolean)</a></p>
  <p>What allows the equivalent behaviour on the <code>java.nio.file.Path</code> object?</p>
  <p>The static method <code>java.nio.file.Files.setAttribute()</code> implies that it is possible to set permissions,</p>
  <p>But there is no clear set of parameters that emulate the <code>java.io.File.setWritable()</code> method.</p>
  <p><a href="https://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#setAttribute(java.nio.file.Path,%20java.lang.String,%20java.lang.Object,%20java.nio.file.LinkOption...)" rel="nofollow noreferrer">https://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#setAttribute(java.nio.file.Path,%20java.lang.String,%20java.lang.Object,%20java.nio.file.LinkOption...)</a></p>