我知道可以使用以下方法设置文件的所有者Files.setOwner:
Files.setOwner(Path path, UserPrincipal owner);
但是 POSIX组呢?API中没有such Files.setGroup()方法,甚至没有使用FileOwnerAttributeView作品,因为只有setOwner。
有可能吗?
我知道可以使用以下方法设置文件的所有者Files.setOwner:
Files.setOwner(Path path, UserPrincipal owner);
但是 POSIX组呢?API中没有such Files.setGroup()方法,甚至没有使用FileOwnerAttributeView作品,因为只有setOwner。
有可能吗?