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

IFileSystem

public interface IFileSystem
Represents an abstract wrapper for the IO wrapper to access and create file system related objects.

Gets an IDirectory instance that wraps the Directory object.

IFile File { get; }

Gets an IFile instance that wraps the File object.

IPath Path { get; }

Gets an IPath instance that wraps the Path object.

Creates a new IDirectoryInfo instance for the specified directory.

IFileInfo CreateFileInfo(string fileName)

Creates a new IFileInfo instance for the specified file.

IStreamWriter CreateStreamWriter(string path, bool append)

Creates a new IStreamWriter instance for the specified file on the specified path, UTF-8 encoding, and default buffer size. If the file exists, it can be either overwritten or appended to. If the file does not exist, a new file is created.

IStreamWriter CreateStreamWriter(string path, bool append, Encoding encoding)

Creates a new IStreamWriter instance for the specified file on the specified path, using the specified encoding and default buffer size. If the file exists, it can be either overwritten or appended to. If the file does not exist, a new file is created.

Creates a deep copy of this instance.