@Override
  public DiskDumpInfo getDumpInfo() throws IOException {
    List<Entry> entries = getEntries();

    DiskDumpInfo dumpInfo = new DiskDumpInfo();
    for (Entry entry : entries) {
      DiskDumpInfoEntry infoEntry = dumpCacheEntry(entry);
      String type = infoEntry.type;
      Integer typeCount = dumpInfo.typeCounts.get(type);
      if (typeCount == null) {
        dumpInfo.typeCounts.put(type, 1);
      } else {
        dumpInfo.typeCounts.put(type, typeCount + 1);
      }
      dumpInfo.entries.add(infoEntry);
    }
    return dumpInfo;
  }
Creates the directory (and its parents, if necessary). In case of an exception, log an error
message with the relevant parameters

@param directory the directory to create
@param message message to use
@throws IOException
imagepipeline-base/src/main/java/com/facebook/cache/disk/DefaultDiskStorage.java