ResolveMementoStorageFilePath

Function ResolveMementoStorageFilePath 

Source
pub fn ResolveMementoStorageFilePath(
    ApplicationDataDirectory: &Path,
    IsGlobalScope: bool,
    WorkspaceIdentifier: &str,
) -> PathBuf
Expand description

Resolves the absolute path for a Memento storage file based on scope.

§Arguments

  • ApplicationDataDirectory - Base application data directory
  • IsGlobalScope - True for global storage, false for workspace storage
  • WorkspaceIdentifier - Workspace identifier (ignored for global scope)

§Returns

PathBuf pointing to the memento storage file

§Behavior

  • Global scope: {AppData}/User/globalStorage.json
  • Workspace scope: {AppData}/User/workspaceStorage/{sanitized-id}/storage.json
  • Sanitizes workspace identifier (alphanumeric, hyphens, underscores only)