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