code: public static void setBytes(Path self, byte[] bytes) throws IOException {
          IOGroovyMethods.setBytes(Files.newOutputStream(self), bytes);
      }
docs: Write the bytes from the byte array to the Path.
  
  @param self  the file to write to
  @param bytes the byte[] to write to the file
  @throws java.io.IOException if an IOException occurs.
  @since 2.3.0