code: public long fileLength(String name) throws IOException {
      return fs.getFileStatus(new Path(directory, name)).getLen();
    }
docs: /* (non-Javadoc)
  @see org.apache.lucene.store.Directory#fileLength(java.lang.String)