public boolean isWritable()

in pekko-connectors-sample-rotate-logs-to-ftp/src/main/java/playground/filesystem/impl/JimfsFtpFile.java [154:169]


  public boolean isWritable() {
    LOG.debug("Checking authorization for " + getAbsolutePath());
    if (user.authorize(new WriteRequest(getAbsolutePath())) == null) {
      LOG.debug("Not authorized");
      return false;
    }

    LOG.debug("Checking if file exists");
    if (Files.exists(path)) {
      LOG.debug("Checking can write: " + getAbsolutePath());
      return Files.isWritable(path);
    }

    LOG.debug("Authorized");
    return true;
  }