code: @Override
  	public FileBaseStatistics getStatistics(BaseStatistics cachedStats) throws IOException {
  		
  		final FileBaseStatistics cachedFileStats = (cachedStats != null && cachedStats instanceof FileBaseStatistics) ?
  			(FileBaseStatistics) cachedStats : null;
  				
  		try {
  			final Path path = this.filePath;
  			final FileSystem fs = FileSystem.get(path.toUri());
  			
  			return getFileStats(cachedFileStats, path, fs, new ArrayList<FileStatus>(1));
  		} catch (IOException ioex) {
  			if (LOG.isWarnEnabled()) {
  				LOG.warn("Could not determine statistics for file '" + this.filePath + "' due to an io error: "
  						+ ioex.getMessage());
  			}
  		}
  		catch (Throwable t) {
  			if (LOG.isErrorEnabled()) {
  				LOG.error("Unexpected problen while getting the file statistics for file '" + this.filePath + "': "
  						+ t.getMessage(), t);
  			}
  		}
  		
  		// no statistics available
  		return null;
  	}
docs: Obtains basic file statistics containing only file size. If the input is a directory, then the size is the sum of all contained files.
  
  @see eu.stratosphere.api.common.io.InputFormat#getStatistics(eu.stratosphere.api.common.io.statistics.BaseStatistics)