/** * Like the super class implementation, but is aware of archive * files in its path. * For entries in a archive file, this is effectively a no-op: * The method will only return {@code true} if the entry isExisting and the * archive file was mounted read only. */ @Override public boolean setReadOnly() { if (null != innerArchive) { try { innerArchive.getController().setReadOnly(getInnerFsEntryName()); return true; } catch (IOException ex) { return false; } } return file.setReadOnly(); }