Table of Contents

Class PreviewCache

Namespace
Archiver.App.Core
Assembly
Archiver.App.Core.dll

T-F97: temp cache for Archive Browser file previews, mirroring TarSandboxScope's "%TEMP%\Pakko<Purpose>" convention (Archiver.Core/Services/Sandbox) but kept in the App.Core layer since preview staging is a pure App-layer concern. T-F252: one subfolder per process (ProcessTempRoot).

public static class PreviewCache
Inheritance
PreviewCache
Inherited Members

Properties

OwnDirectory

This process's preview folder.

public static string OwnDirectory { get; }

Property Value

string

RootDirectory

Root temp directory every process's preview scopes live under.

public static string RootDirectory { get; }

Property Value

string

Methods

CreateScope()

Creates a fresh scope directory for one previewed file and returns its path.

public static string CreateScope()

Returns

string

DeleteOwn()

Deletes this process's preview scopes. Best-effort — a file still open in the OS handler that previewed it blocks deletion; SweepStale() at the next start removes it.

public static void DeleteOwn()

SweepStale()

Deletes preview folders left by Pakko processes that no longer run.

public static void SweepStale()