code: public static int size(Path path) {
          try {
              return (int) Files.size(path);
          } catch (IOException e) {
              throw Exceptions.propagate(e);
          }
      }
docs: Calculates the size of a {@link Path}
  
  @param path the {@link Path} to calculate the size for
  @return the size