@Override public void setUnixPermission(final Path file, final Permission permission) throws BackgroundException { delegate.setUnixPermission(cryptomator.encrypt(session, file), permission); }
@Override public void setUnixPermission(final Path file, final Permission permission) throws BackgroundException { registry.find(session, file).getFeature(session, UnixPermission.class, proxy).setUnixPermission(file, permission); }
protected void write(final Session<?> session, final UnixPermission feature, final Path file, final Permission permission) throws BackgroundException { listener.message(MessageFormat.format(LocaleFactory.localizedString("Changing permission of {0} to {1}", "Status"), file.getName(), permission)); feature.setUnixPermission(file, permission); if(file.isDirectory()) { if(callback.recurse(file, permission)) { for(Path child : session.getFeature(ListService.class).list(file, new WorkerListProgressListener(this, listener))) { this.write(session, feature, child, permission); } } } }
listener.message(MessageFormat.format(LocaleFactory.localizedString("Changing permission of {0} to {1}", "Status"), file.getName(), status.getPermission())); feature.setUnixPermission(file, status.getPermission());
listener.message(MessageFormat.format(LocaleFactory.localizedString("Changing permission of {0} to {1}", "Status"), file.getName(), status.getPermission())); feature.setUnixPermission(file, status.getPermission());