code: @VisibleForTesting
    static File createSnapshotFile(File directory, String serverName, long index) {
      return new File(directory, createSnapshotFileName(serverName, index));
    }
docs: Creates a snapshot file for the given directory, log name, and snapshot index.