private boolean query(String resourceId, boolean touch) {
    File contentFile = getContentFileFor(resourceId);
    boolean exists = contentFile.exists();
    if (touch && exists) {
      contentFile.setLastModified(mClock.now());
    }
    return exists;
  }
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