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

TempDirectory2

public sealed class TempDirectory2 : IDisposable
Represents a disposable temporary directory class object. This class cannot be inherited.
public bool ClearReadOnlyAttributes { get; set; }

Gets or sets a value indicating whether to clear all read-only attributes within the temp directory once this instance is disposed.

public bool DeleteDirectory { get; set; }

Gets or sets a value indicating whether to delete the directory once this instance is disposed.

public string Directory { get; }

Gets the directory.

public TempDirectory2()

Initializes a new instance of the TempDirectory2 class.

public void Create()

Creates the directory.

public void Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public bool Exists()

Determines whether the directory exists on disk.