private File getOrCreateCurrentTestRunReportsDirectory()

in core/src/main/java/com/facebook/testing/screenshot/internal/ReportArtifactsManager.java [53:62]


  private File getOrCreateCurrentTestRunReportsDirectory() {
    if (mCurrentTestRunReportsDirectory == null) {
      mCurrentTestRunReportsDirectory = new File(mRootDir, mTestRunId);
      if (!mCurrentTestRunReportsDirectory.mkdir()
          && !mCurrentTestRunReportsDirectory.isDirectory()) {
        throw new IllegalStateException("Unable to create a directory to store reports.");
      }
    }
    return mCurrentTestRunReportsDirectory;
  }