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

IDirectory

public interface IDirectory
Represents an abstract wrapper for the Directory class.
void CreateDirectory(string path)

Creates all directories and subdirectories in the specified path unless they already exist.

void Delete(string path)

Deletes an empty directory from a specified path.

void Delete(string path, bool recursive)

Deletes the specified directory and, if indicated, any subdirectories and files in the directory.

void DeleteIfExists(string path, bool recursive, bool throwOnExistsCheck)

Deletes the specified directory and, if indicated, any subdirectories and files in the directory only when it exists and optionally throw when a failure occurs.

bool Exists(string path)

Determines whether the given path refers to an existing directory on disk.

bool Exists(string path, bool throwOnExistsCheck)

Determines whether the given path refers to an existing directory on disk and optionally throw when a failure occurs.

Retrieves the parent directory of the specified path, including both absolute and relative paths.