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