Esempio n. 1
0
 static void checkPosixAttributes(PosixFileAttributes attrs1, PosixFileAttributes attrs2) {
   assertTrue(attrs1.permissions().equals(attrs2.permissions()));
   assertTrue(attrs1.owner().equals(attrs2.owner()));
   assertTrue(attrs1.group().equals(attrs2.group()));
 }
 /**
  * Invoked by readAttributes or sub-classes to add all matching posix attributes to the builder
  */
 final void addRequestedPosixAttributes(PosixFileAttributes attrs, AttributesBuilder builder) {
   addRequestedBasicAttributes(attrs, builder);
   if (builder.match(PERMISSIONS_NAME)) builder.add(PERMISSIONS_NAME, attrs.permissions());
   if (builder.match(OWNER_NAME)) builder.add(OWNER_NAME, attrs.owner());
   if (builder.match(GROUP_NAME)) builder.add(GROUP_NAME, attrs.group());
 }