code: public static String getLocalFileGroup(String filePath) throws IOException {
      PosixFileAttributes attr =
          Files.readAttributes(Paths.get(filePath), PosixFileAttributes.class);
      return attr.group().getName();
    }
docs: Gets local file's group.
  
  @param filePath the file path
  @return the group of the local file