Table of Contents

Class ClearDirectory

Namespace
ZeroInstall.Store.Deployment
Assembly
ZeroInstall.Store.dll

Deletes files listed in a Manifest file from a directory.

public class ClearDirectory : DirectoryOperation, IDisposable
Inheritance
object
ClearDirectory
Implements
Inherited Members

Constructors

ClearDirectory(string, Manifest, ITaskHandler)

Deletes files listed in a Manifest file from a directory.

public ClearDirectory(string path, Manifest manifest, ITaskHandler handler)

Parameters

path string

The path of the directory to clear.

manifest Manifest

The contents of a Manifest file describing the directory.

handler ITaskHandler

A callback object used when the user needs to be asked questions or informed about IO tasks.

Properties

PendingDeletes

The paths that Commit() would delete after Stage(): files and links, followed by directories with the deepest ones first. Directories are only to be deleted if they are empty.

public IEnumerable<string> PendingDeletes { get; }

Property Value

IEnumerable<string>

Methods

OnCommit()

protected override void OnCommit()

OnRollback()

protected override void OnRollback()

OnStage()

protected override void OnStage()