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

FolderCache

public class FolderCache : IFolderCache
Represents a class object to manage client-side folder operations through a simple cache.
public const int FolderNotFoundId = -1

public const string PathSeparator = "\\"

public const char PathSeparatorChar = '\\'

public int Count { get; }

Gets the total number of folders in the cache.

public FolderCache(ILog logger, IHierarchicArtifactManager hierarchicArtifactManager, int rootFolderId, int workspaceId)

Initializes a new instance of the FolderCache class.

public int GetFolderId(string folderPath)

Retrieves the folder artifact identifier for the specified folder path and automatically create all sub-folder paths that don't already exist.