Table of Contents

Interface ISourceDeleteOperations

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

The platform operations SourceRecycler needs, behind an interface so its decisions are testable without touching the real Recycle Bin.

public interface ISourceDeleteOperations

Methods

DeletePermanently(string)

Deletes a resolved path permanently; throws on failure.

void DeletePermanently(string finalPath)

Parameters

finalPath string

Exists(string)

Whether a file or folder exists at the path.

bool Exists(string path)

Parameters

path string

Returns

bool

IsOnFixedLocalVolume(string)

True only when a resolved path lies on a fixed local volume (one with a Recycle Bin).

bool IsOnFixedLocalVolume(string finalPath)

Parameters

finalPath string

Returns

bool

MoveToRecycleBin(IReadOnlyList<string>)

Moves resolved paths to the Recycle Bin.

void MoveToRecycleBin(IReadOnlyList<string> finalPaths)

Parameters

finalPaths IReadOnlyList<string>

ResolveFinalPath(string)

The path with SUBST drives, mapped drives and intermediate links resolved, or null when it cannot be opened.

string? ResolveFinalPath(string path)

Parameters

path string

Returns

string