@Override public void setOwner(UserPrincipal owner) throws IOException { ownerView.setOwner(owner); } }
@Override public void setOwner(UserPrincipal owner) throws IOException { ownerView.setOwner(owner); } }
@Override public void setOwner(UserPrincipal owner) throws IOException { ownerView.setOwner(owner); } }
@Override public void setOwner(UserPrincipal owner) throws IOException { ownerView.setOwner(owner); } }
@Override public void writeAttribute(Object value, MemoryEntry entry) throws IOException { entry.getFileAttributeView(FileOwnerAttributeView.class).setOwner((UserPrincipal) value); }
@Override public void setOwner( UserPrincipal owner ) throws IOException { ownerHost().setOwner( owner ); }
private Consumer<Path> updateOwner(final UserPrincipal owner) { return path -> { try { Files.getFileAttributeView(path, FileOwnerAttributeView.class).setOwner(owner); getLog().debug("Updating owner of" + path); } catch (IOException e) { throw new RuntimeException("Unable to update YAML file owner", e); } }; } }
@Override public void setOwner(UserPrincipal owner) throws ModeException { FileOwnerAttributeView view = Files.getFileAttributeView(path, FileOwnerAttributeView.class); try { view.setOwner(owner); } catch (IOException e) { throw new ModeException(this, e); } }
view.setOwner((UserPrincipal) value); } else if ("group".equalsIgnoreCase(attribute)) { PosixFileAttributeView view = Files.getFileAttributeView(file, PosixFileAttributeView.class, options);
public RWAttributesBuilder addOwner() { attributes( "owner", FileOwnerAttributeView.class ). attribute( "owner", FunctionE.u( FileOwnerAttributeView::getOwner ), BiConsumerE.u( ( v, p ) -> v.setOwner( (UserPrincipal) p ) ) ); return this; }
.getFileAttributeView(targetDir, FileOwnerAttributeView.class); targetOwner.setOwner(ownerAttrs.getOwner());
FileOwnerAttributeView targetOwner = Files.getFileAttributeView(targetDir, FileOwnerAttributeView.class); targetOwner.setOwner(ownerAttrs.getOwner());
.getFileAttributeView(targetDir, FileOwnerAttributeView.class); targetOwner.setOwner(ownerAttrs.getOwner());