code: public void renameFile(String from, String to) throws IOException {
      fs.rename(new Path(directory, from), new Path(directory, to));
    }
docs: /* (non-Javadoc)
  @see org.apache.lucene.store.Directory#renameFile(java.lang.String, java.lang.String)