code: public static String hash(Path path) {
          try (InputStream in = Files.newInputStream(path)) {
              return hash(in);
          } catch (IOException e) {
              throw Exceptions.propagate(e);
          }
      }
docs: Calculates the SHA-1 hash for a {@link Path}
  
  @param path the {@link Path} to calculate the hash for
  @return a {@link String} representation of the hash