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
finalPathstring
Exists(string)
Whether a file or folder exists at the path.
bool Exists(string path)
Parameters
pathstring
Returns
IsOnFixedLocalVolume(string)
True only when a resolved path lies on a fixed local volume (one with a Recycle Bin).
bool IsOnFixedLocalVolume(string finalPath)
Parameters
finalPathstring
Returns
MoveToRecycleBin(IReadOnlyList<string>)
Moves resolved paths to the Recycle Bin.
void MoveToRecycleBin(IReadOnlyList<string> finalPaths)
Parameters
finalPathsIReadOnlyList<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
pathstring