<PackageReference Include="Relativity.Server.Import.SDK" Version="24000.1.1" />

IIoReporter

public interface IIoReporter
Represents an abstract object to perform I/O operations, publish warning messages, and retry the operation.
void CopyFile(string sourceFileName, string destFileName, bool overwrite, int lineNumber)

Copies an existing file to a new file. Overwriting a file of the same name is allowed.

bool GetFileExists(string fileName, int lineNumber)

Gets a value indicating whether the file exists. When an I/O error occurs, warning messages are published and the operation is retried.

long GetFileLength(string fileName, int lineNumber)

Gets the size, in bytes, of the current file. When an I/O error occurs, warning messages are published and the operation is retried.

void PublishRetryMessage(Exception exception, TimeSpan timeSpan, int retryCount, int totalRetryCount, long lineNumber)

Publishes a retry-based warning message and logs the exception.

Publishes a raw warning message but doesn't log the issue.