code: private static void checkExists(FileSystem fs, Path location) {
      try {
        if (!fs.exists(location)) {
          throw new DatasetNotFoundException(
              "Descriptor location does not exist: " + location);
        }
      } catch (IOException ex) {
        throw new DatasetIOException(
            "Cannot access descriptor location: " + location, ex);
      }
    }
docs: Precondition-style static validation that a dataset exists
  
  @param fs        A FileSystem where the metadata should be stored
  @param location  The Path where the metadata should be stored
  @throws org.kitesdk.data.DatasetNotFoundException if the descriptor location is missing
  @throws org.kitesdk.data.DatasetIOException  if any IOException is thrown