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

IPath

public interface IPath
Represents an abstract wrapper for the Path class.
string CustomTempPath { get; set; }

Gets or sets a custom temp directory to override the path returned by GetTempPath.

bool SupportLongPaths { get; set; }

Gets or sets a value indicating whether to support long paths. This is always false by default and must be explicitly enabled.

string AddTrailingBackSlash(string path)

Adds a trailing back slash to path if one isn't found.

string ChangeExtension(string path, string extension)

Changes the extension of a path string.

string Combine(string path1, string path2)

Combines two strings into a path.

string ConvertIllegalCharactersInFilename(string fileName)

Replace known illegal characters in the provided string with underscores.

string ConvertIllegalCharactersInFilename(string fileName, string replacement)

Replace known illegal characters in the provided string with the provided conversion string.

string GetDirectoryName(string path)

Returns the directory information for the specified path string.

string GetExtension(string path)

Returns the extension of the specified path string.

string GetFileName(string path)

Returns the file name and extension of the specified path string.

string GetFullPath(string path)

Returns the absolute path for the specified path string.

string GetFullyQualifiedPath(Uri baseUri, string path)

Gets the fully qualified path using the provided relative and base path.

string GetTempFileName()

Gets a uniquely named, zero-byte temporary file on disk and returns the full path of that file.

string GetTempFileName(string fileNameSuffix)

Gets a uniquely named with a user-defined suffix, zero-byte temporary file on disk and returns the full path of that file.

string GetTempPath()

Returns the path of the current user's temporary folder.

bool IsPathFullyQualified(string path)

Determines whether the supplied path is fully qualified.

bool IsPathRooted(string path)

Gets a value indicating whether the specified path string contains a root.

bool IsPathUnc(string path)

Determines whether the supplied path matches a standard Windows UNC path.

string NormalizePath(string path)

Normalizes the path by adding the long path prefix when SupportLongPaths is true.

Gets a value indicating whether path ends with a trailing backslash character.

string TemporaryFileNameWithoutCreatingEmptyFile(string fileNameSuffix)

Gets a uniquely named filename with a user-defined suffix and returns the full path of that file.

string TrimLeadingSlash(string path)

Trims the leading slash from the supplied path.

string TrimTrailingSlash(string path)

Trims the trailing slash from the supplied path.